Files
FabledSteward/docker-compose.yml
T
bvandeusen ee0b22bafd chore(compose): mount docker socket and traefik log path
Enables the docker plugin to scrape container state and the traefik
access_log plugin to read host log files.
2026-04-13 18:06:05 -04:00

36 lines
835 B
YAML

services:
app:
build: .
ports:
- "5000:5000"
volumes:
- app_data:/data
- ./plugins:/app/plugins:ro
- /mnt/Data/traefik/log:/var/log/traefik:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- FABLEDSCRYER_DATABASE_URL=postgresql+asyncpg://fabledscryer:fabledscryer@db/fabledscryer
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: fabledscryer
POSTGRES_PASSWORD: fabledscryer
POSTGRES_DB: fabledscryer
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fabledscryer"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
pgdata:
app_data: