From bb9c401379b685bc816fc124652cdd9d2e92a05a Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Fri, 12 May 2023 16:16:42 +0200 Subject: [PATCH] fix: Restart cronjob on reboot. Restart containers until stopped also. --- templates/docker-compose.yml.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index dc8c7ba..80ae659 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -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