Closed MilkMGN closed 2 months ago
Thanks for the info! It's up to the user on how they want to implement their nut server and out-of-scope for this dashboard UI. But my examples do use that variable like here.
Nevertheless, hopefully this issue will save time for someone in the future.
Enhancement of issue
I have been pulling my hair out for 72 hours trying to make this project workon docker-compose. I found out about 5 minutes ago that there is a missing environment variable for API_PASSWORD on the
nut-upsd
service. This would have saved me DAYS.Currently, just putting in the docker compose in (i believe) examples/basic/compose.yml as is causes the spinning wheel and a 500 server error.
Please, add it to the example docker-compose.
Solution
I can't be bothered making a PR but here is the BASIC setup needed to make this work. I did not go so far as to use secrets, though they could be added.
this codeblock is broken for some reason
`services: nut-upsd: image: instantlinux/nut-upsd container_name: nut-upsd devices:
/dev/bus/usb restart: unless-stopped environment:
peanut: image: brandawg93/peanut:latest container_name: PeaNUT ports:
networks: default: name: nut_network`
Alternatives
Could also do a setup with secrets, or have this documented (Maybe where the current broken docker-compose is in README.MD?)
Additional Context
No response