40 lines
1,014 B
Django/Jinja
40 lines
1,014 B
Django/Jinja
---
|
|
{{ ansible_managed | comment }}
|
|
services:
|
|
app:
|
|
image: fireflyiii/core:{{ firefly_version }}
|
|
hostname: app
|
|
container_name: firefly_iii_core
|
|
restart: always
|
|
volumes:
|
|
- {{ firefly_home }}/app/upload:/var/www/html/storage/upload
|
|
env_file: /etc/firefly/app.env
|
|
networks:
|
|
- firefly_iii
|
|
ports:
|
|
- {{ firefly_port }}:8080
|
|
depends_on:
|
|
- db
|
|
db:
|
|
image: postgres:17
|
|
hostname: db
|
|
container_name: firefly_iii_db
|
|
restart: always
|
|
env_file: /etc/firefly/db.env
|
|
networks:
|
|
- firefly_iii
|
|
volumes:
|
|
- {{ firefly_home }}/db/data:/var/lib/postgresql/data
|
|
- {{ firefly_home }}/db/backup:/var/lib/postgresql/backup
|
|
|
|
cron:
|
|
image: alpine
|
|
restart: always
|
|
container_name: firefly_iii_cron
|
|
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
|
|
|
|
networks:
|
|
firefly_iii:
|
|
driver: bridge
|