services: app: image: fireflyiii/core:latest hostname: app container_name: firefly_iii_core restart: always volumes: - /srv/homelab/firefly/data:/var/www/html/storage/upload env_file: .env ports: - "8800:8080" cron: # # To make this work, set STATIC_CRON_TOKEN in your .env file or as an environment variable # The STATIC_CRON_TOKEN must be *exactly* 32 characters long # Use this URL for inspiration: https://www.random.org/strings/?num=1&len=32&digits=on&upperalpha=on&loweralpha=on&unique=on&format=html&rnd=new # image: alpine restart: always container_name: firefly_iii_cron env_file: .env command: ["sh", "-c", "apk add tzdata && \ (ln -s /usr/share/zoneinfo/$$TZ /etc/localtime || true) && \ echo \"0 3 * * * wget -qO- http://app:8080/api/v1/cron/$$STATIC_CRON_TOKEN;echo\" \ | crontab - && \ crond -f -L /dev/stdout"] depends_on: - app redis: image: redis:7-alpine container_name: firefly_iii_redis restart: always importer: image: fireflyiii/data-importer:latest hostname: importer restart: always container_name: firefly_iii_importer ports: - '8801:8080' depends_on: - app env_file: .importer.env volumes: - /mnt/freebox:/import