Skip to content

Instantly share code, notes, and snippets.

@TheTinkerDad
Created August 7, 2021 11:42
Show Gist options
  • Save TheTinkerDad/27c999ed693001bc4c979d51c916660c to your computer and use it in GitHub Desktop.
Save TheTinkerDad/27c999ed693001bc4c979d51c916660c to your computer and use it in GitHub Desktop.
version: "2.0"
services:
nut-upsd:
image: instantlinux/nut-upsd
ports:
- 3493:3493
environment:
- SERIAL=abcdef123456
secrets:
- nut-upsd-password
devices:
- /dev/usb/hiddev0:/dev/usb/hiddev0
privileged: true
restart: always
secrets:
- nut-upsd-password:
file: secret.txt
@masterlog80
Copy link

Hello!
Sorry, what there should be specifically in the secret.txt file?

@andrejlukic
Copy link

well same issue here, not sure what the format of the secrets file should be

@wombat70
Copy link

The answers are at the bottom of the instantlinux source repo's README: https://github.com/instantlinux/docker-tools/blob/main/images/nut-upsd/README.md#secrets

"...If the API user needs a password, you have two ways to specify it: pass the value itself as environment variable API_PASSWORD, or define a Docker secret..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment