This docker image contains NUT.
This is an example dynamic configuration connecting to upsd as a slave.
---
version: "3.9"
services:
upsd:
...
environment:
UPSMON_UPS_UPSMONSLAVE: |
MONITOR ups0@myupsdhost 1 upsmonslave $${UPSMONSLAVE_PASSWORD} slave
...
The embedded entrypoint script is located at /etc/entrypoint.d/upsmon
and performs the following actions:
- A new upsmon configuration is generated using the following environment variables:
Variable | Default Value | Description |
---|---|---|
UPSMON_NSS_PATH | <nut_confpath>/nss |
The path to the NSS database. |
UPSMON_UPS_* | The contents to be appended to <nut_confpath>/upsmon.conf . |
- Volume permissions are normalized.
/
├─ etc/
│ ├─ entrypoint.d/
│ │ └─ upsmon
│ ├─ healthcheck.d/
│ │ └─ upsmon
│ └─ supervisor/
│ └─ config.d/
│ └─ upsmon.conf
└─ run/
└─ secrets/
├─ nss_password
├─ upsmon.crt
├─ upsmon.key
├─ upsmonca.crt
└─ upsmon_<user>_password
None.
/etc/nut
- The upsmon configuration directory.