Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
commit
793ee4598c
9 changed files with 297 additions and 0 deletions
40
templates/docker-compose.yml.j2
Normal file
40
templates/docker-compose.yml.j2
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
{{ 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue