ee0b22bafd
Enables the docker plugin to scrape container state and the traefik access_log plugin to read host log files.
36 lines
835 B
YAML
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:
|