fix: Restart cronjob on reboot.

Restart containers until stopped also.
This commit is contained in:
Laur Ivan 2023-05-12 16:16:42 +02:00
parent 2caffffc54
commit bb9c401379

View File

@ -3,7 +3,7 @@ version: '3.9'
services:
app:
image: fireflyiii/core:latest
restart: always
restart: unless-stopped
volumes:
- firefly_iii_upload:/var/www/html/storage/upload
env_file: env.firefly.conf
@ -16,7 +16,7 @@ services:
db:
image: mariadb
hostname: fireflyiiidb
restart: always
restart: unless-stopped
env_file: env.db.conf
networks:
- firefly_iii
@ -29,6 +29,7 @@ services:
# The STATIC_CRON_TOKEN must be *exactly* 32 characters long
#
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"
networks:
- firefly_iii