2021-01-02 16:54:47 +01:00
|
|
|
# nut-docker
|
|
|
|
|
2021-01-02 16:57:25 +01:00
|
|
|
**NUT-SERVER**
|
2021-01-02 16:54:47 +01:00
|
|
|
|
2021-01-02 16:57:25 +01:00
|
|
|
This is a simple debian image with the nut-server package installed.
|
2021-01-02 17:32:43 +01:00
|
|
|
Image available at https://hub.docker.com/r/nardo86/nut-server
|
2021-01-02 16:57:25 +01:00
|
|
|
|
|
|
|
**USAGE**
|
|
|
|
|
|
|
|
Just run the image publishing the port and pointing to the ups device path. Use lsusb to find the current Bus and Device
|
|
|
|
|
2021-01-08 12:50:14 +01:00
|
|
|
`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'`
|
|
|
|
|
2021-01-02 16:57:25 +01:00
|
|
|
|
|
|
|
**EXTRA OPTIONS**
|
|
|
|
|
|
|
|
Environment variable used for the configuration
|
|
|
|
|
2021-01-08 12:50:14 +01:00
|
|
|
**NAME** a simple name for your ups (default: ups)
|
2021-01-02 16:57:25 +01:00
|
|
|
|
2021-01-08 12:50:14 +01:00
|
|
|
**DRIVER** the driver to use* (default: usbhid-ups)
|
2021-01-02 16:57:25 +01:00
|
|
|
|
|
|
|
**PORT** device port (default: auto)
|
|
|
|
|
|
|
|
**POLLFREQ** polling Interval (default: 5)
|
|
|
|
|
|
|
|
**DESC** full description for your ups (default: UPS)
|
|
|
|
|
2021-01-08 12:50:14 +01:00
|
|
|
**USERSSTRING** single line users configuration (default: #)
|
|
|
|
|
2021-01-02 16:57:25 +01:00
|
|
|
*see https://networkupstools.org/stable-hcl.html for compatibility list
|