ansible-role-firefly/templates/docker-compose.yml.j2

43 lines
1.0 KiB
Plaintext
Raw Normal View History

# firefly docker compose
version: '3.9'
services:
app:
image: fireflyiii/core:latest
restart: unless-stopped
volumes:
- firefly_iii_upload:/var/www/html/storage/upload
env_file: env.firefly.conf
networks:
- firefly_iii
ports:
- "{{ firefly_http_port_app }}:8080"
depends_on:
- db
db:
image: mariadb
hostname: fireflyiiidb
restart: unless-stopped
env_file: env.db.conf
networks:
- firefly_iii
volumes:
- firefly_iii_db:/var/lib/mysql
cron:
#
# To make this work, set STATIC_CRON_TOKEN in your .env file or as an environment variable and replace REPLACEME below
# 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
volumes:
firefly_iii_upload:
firefly_iii_db:
networks:
firefly_iii:
driver: bridge