ansible-role-firefly/templates/docker-compose.yml.j2
Laur Ivan 5ee23c3a7e feature: initial commit
Install Firefly III without importer.
2023-04-30 12:44:46 +02:00

42 lines
1019 B
Django/Jinja

# firefly docker compose
version: '3.9'
services:
app:
image: fireflyiii/core:latest
restart: always
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: always
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
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