add a variable to the cron container

This commit is contained in:
Andreas Zweili 2020-05-10 10:14:24 +02:00
parent a16676b453
commit e5b09069e4
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
APP_DOMAIN=firefly.zweili.org
CRON_TOKEN=token
# You can leave this on "local". If you change it to production most console commands will ask for extra confirmation.
# Never set it to "testing".

View File

@ -34,4 +34,4 @@ services:
- ./db:/var/lib/postgresql/data
cron:
image: alpine
command: sh -c "echo \"0 3 * * * wget https://firefly.zweili.org/cron/run/<TOKEN>\" | crontab - && crond -f -L /dev/stdout"
command: sh -c "echo \"0 3 * * * wget https://firefly.zweili.org/cron/run/${CRON_TOKEN}\" | crontab - && crond -f -L /dev/stdout"