This might be a stupid question, but here goes anyway. Why not install Ubuntu server without proxmox and run docker and Portainer the way you described it?
Had a leak under the sink in our kitchen. I don’t want to imagine what this would have meant on a larger scale, compared the 20€ I spent on the sensor and the 10mins it costed me to install it.