46 lines
1,006 B
YAML
46 lines
1,006 B
YAML
version: "3.3"
|
|
|
|
services:
|
|
|
|
|
|
fireflyiii:
|
|
image: fireflyiii/core:latest
|
|
volumes:
|
|
- ${VOLUMES_PATH}/finance/upload:/var/www/html/storage/upload
|
|
networks:
|
|
- web
|
|
- finance
|
|
env_file: .env
|
|
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"
|
|
- "traefik.docker.network=web"
|
|
- "docker.group=firefly"
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
|
|
|
|
db:
|
|
image: linuxserver/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
|