homeserver/finance/docker-compose.yaml

45 lines
1,004 B
YAML

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"
restart: unless-stopped
networks:
finance:
web:
external: true