Fork 0
-- DISCONTINUED -- A simple debian image with the nut-server package installed
Go to file
Eros Nardi 3807905b03 0 2021-04-08 15:55:07 +02:00
.gitignore 0 2021-04-07 11:17:27 +02:00
Dockerfile 0 2021-04-08 15:55:07 +02:00
README.md Added donation link 2021-01-09 12:28:08 +01:00
entrypoint.sh Optimized Dockerfile 2021-01-08 23:55:53 +01:00



This is a simple debian image with the nut-server package installed.

Image available at https://hub.docker.com/r/nardo86/nut-server

Feel free to consider donating if my work helped you! https://paypal.me/ErosNardi

Tested on my Raspberry Pi 4 on a APC Back-UPS ES 700


Just run the image publishing the port and pointing to the ups device path. Use lsusb to find the current Bus and Device

docker run -d -p 3493:3493 --name=Nut --restart unless-stopped --device=/dev/bus/usb/001/005 nardo86/nut-server

All the settings for the UPS are customizable like the name, driver, Port, Polling frequency and the description using the enviroment variables.

It is also possibile to insert an user, for example it's possibile to make the service compatible with Synology NAS changing the USERSSTRING like

-e USERSSTRING='[monuser] \n password = secret \n upsmon slave'


Environment variable used for the configuration

Variable Description Default
NAME a simple name for your ups ups
DRIVER the driver to use* usbhid-ups
PORT device port auto
POLLFREQ polling Interval 5
DESC full description for your ups UPS
USERSSTRING single line users configuration #

*see https://networkupstools.org/stable-hcl.html for compatibility list