festbench-web/docker/develop.compose.yaml

25 lines
No EOL
767 B
YAML

# Development-only stack: Postgres 17 in a container so the base OS stays clean
# and the app talks TCP to a network-attached DB, mirroring the production
# topology (DB on a nearby host). Production deploys via the Dockerfile only —
# Coolify never sees this file.
services:
postgres:
image: postgres:17
container_name: festbench-postgres
restart: unless-stopped
environment:
POSTGRES_DB: festbench
POSTGRES_USER: festbench
POSTGRES_PASSWORD: festbench
ports:
- "127.0.0.1:5432:5432"
volumes:
- festbench-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U festbench -d festbench"]
interval: 5s
timeout: 3s
retries: 10
volumes:
festbench-postgres: