Running NUT in Docker containers - networkupstools/nut GitHub Wiki
Research may be needed (page updates welcome) about set-up of device pass-through to monitor directly-connected USB/Serial/... devices.
- https://github.com/instantlinux/docker-tools/tree/main/images/nut-upsd
- https://github.com/leleobhz/docker-nut
See also pages about Home Assistant and generic LXC containers.