selfhosted-traefik/firefly/docker-compose.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

2021-12-05 13:00:05 +00:00
version: '3.5'
networks:
default:
external:
name: traefik_default
services:
firefly-app:
image: fireflyiii/core:latest
restart: unless-stopped
container_name: firefly-app
networks:
- default
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
# Routes
- "traefik.enable=true"
- "traefik.http.routers.firefly.entrypoints=websecure"
- "traefik.http.routers.firefly.rule=Host(`firefly.${DOMAIN}`)"
- "traefik.http.routers.firefly.tls=true"
- "traefik.http.routers.firefly.tls.certresolver=myresolver"
# - "traefik.http.services.firefly.loadbalancer.server.port=3000"
volumes:
- ${FIREFLY_ROOT}/data:/var/www/html/storage/upload
env_file: live.env
# ports:
# - 80:8080
depends_on:
- firefly-db
firefly-db:
image: mariadb
container_name: firefly-db
restart: unless-stopped
networks:
- default
labels:
- "com.centurylinklabs.watchtower.enable=true"
env_file:
- live.env
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
volumes:
- ${FIREFLY_ROOT}/db:/var/lib/mysql