2021-03-17 00:03:44 +01:00
|
|
|
version: "3.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
fireflyiii:
|
|
|
|
image: jc5x/firefly-iii:latest
|
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/firefly_upload:/var/www/html/storage/upload
|
|
|
|
env_file: .env
|
|
|
|
ports:
|
|
|
|
- 8087:8080
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- finance
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.firefly.rule=Host(`finance.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.firefly.entrypoints=web"
|
|
|
|
- "traefik.http.services.firefly.loadbalancer.server.port=8080"
|
|
|
|
- "docker.group=finance"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: yobasystems/alpine-mariadb:latest
|
|
|
|
networks:
|
|
|
|
- finance
|
|
|
|
environment:
|
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
|
|
- MYSQL_USER=${DB_USERNAME}
|
|
|
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
|
|
- MYSQL_DATABASE=${DB_DATABASE}
|
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/firefly_db:/var/lib/mysql
|
|
|
|
labels:
|
|
|
|
- "docker.group=finance"
|
2021-03-27 15:29:10 +01:00
|
|
|
restart: unless-stopped
|
2021-03-17 00:03:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
finance:
|
|
|
|
web:
|
|
|
|
external: true
|