Open jpbaril opened 1 year ago
Hi,
I've never tried with docker secrets but only with regular files 🤔 .
Do you have any errors in the log ? Something indicating that the files cannot be loaded?
Maybe a permission issue?
Would the example below work?
version: '3'
services:
whatsupdocker:
image: fmartinou/whats-up-docker
container_name: wud
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3001:3000
environment:
- WUD_TRIGGER_APPRISE_BASE_MODE=batch
- WUD_TRIGGER_APPRISE_BASE_ONCE=false
- WUD_TRIGGER_APPRISE_BASE_URL__FILE=/wud/apprise_url.txt
- WUD_TRIGGER_APPRISE_BASE_URLS__FILE=/wud/apprise_urls.txt
volumes:
- ./secrets/apprise_url.txt:/wud/apprise_url.txt:ro
- ./secrets/apprise_urls.txt:/wud/apprise_urls.txt:ro
Nevermind, it works. The problem was that in one of the files there was an additional empty line below the first one.
BTW, I just learned about Docker secrets recently. I really don't know what is the advantage compared to using volumes.
Based on documentation and issue https://github.com/fmartinou/whats-up-docker/issues/162 it should work.
Here is my docker-compose.yml file:
And here are the content of 'secrets/apprise_url.txt':
https://user:password@apprise.domain.com
and 'secrets/apprise_urls.txt':mailtos://user:password@gmail.com
Without using secrets and so using:
it worked.
So what's wrong with Docker secrets ?