add a variable to the cron container
This commit is contained in:
parent
a16676b453
commit
e5b09069e4
|
@ -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".
|
||||
|
|
|
@ -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"
|
||||
|
|
Reference in New Issue