Files
FabledSteward/docker-compose.yml
T

36 lines
812 B
YAML

services:
app:
build: .
ports:
- "5000:5000"
volumes:
- ./config.yaml:/config/config.yaml:ro
- playbook_cache:/data/playbook_cache
- plugins:/data/plugins
environment:
- FABLEDNETMON_DATABASE__URL=postgresql+asyncpg://fablednetmon:fablednetmon@db/fablednetmon
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: fablednetmon
POSTGRES_PASSWORD: fablednetmon
POSTGRES_DB: fablednetmon
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fablednetmon"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
pgdata:
playbook_cache:
plugins: