fix: Restart cronjob on reboot.
Restart containers until stopped also.
This commit is contained in:
parent
2caffffc54
commit
bb9c401379
@ -3,7 +3,7 @@ version: '3.9'
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: fireflyiii/core:latest
|
image: fireflyiii/core:latest
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- firefly_iii_upload:/var/www/html/storage/upload
|
- firefly_iii_upload:/var/www/html/storage/upload
|
||||||
env_file: env.firefly.conf
|
env_file: env.firefly.conf
|
||||||
@ -16,7 +16,7 @@ services:
|
|||||||
db:
|
db:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
hostname: fireflyiiidb
|
hostname: fireflyiiidb
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
env_file: env.db.conf
|
env_file: env.db.conf
|
||||||
networks:
|
networks:
|
||||||
- firefly_iii
|
- firefly_iii
|
||||||
@ -29,6 +29,7 @@ services:
|
|||||||
# The STATIC_CRON_TOKEN must be *exactly* 32 characters long
|
# The STATIC_CRON_TOKEN must be *exactly* 32 characters long
|
||||||
#
|
#
|
||||||
image: alpine
|
image: alpine
|
||||||
|
restart: unless-stopped
|
||||||
command: sh -c "echo \"0 3 * * * wget -qO- http://app:8080/api/v1/cron/{{ firefly_static_cron_token }}\" | crontab - && crond -f -L /dev/stdout"
|
command: sh -c "echo \"0 3 * * * wget -qO- http://app:8080/api/v1/cron/{{ firefly_static_cron_token }}\" | crontab - && crond -f -L /dev/stdout"
|
||||||
networks:
|
networks:
|
||||||
- firefly_iii
|
- firefly_iii
|
||||||
|
Loading…
Reference in New Issue
Block a user