2026-09-18 18:41:33 +00:00
|
|
|
# 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.
|
2026-09-17 02:29:49 +00:00
|
|
|
services:
|
2026-09-18 18:41:33 +00:00
|
|
|
postgres:
|
|
|
|
|
image: postgres:17
|
|
|
|
|
container_name: festbench-postgres
|
2026-09-17 02:29:49 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
2026-09-18 18:41:33 +00:00
|
|
|
POSTGRES_DB: festbench
|
|
|
|
|
POSTGRES_USER: festbench
|
|
|
|
|
POSTGRES_PASSWORD: festbench
|
2026-09-17 02:29:49 +00:00
|
|
|
ports:
|
2026-09-18 18:41:33 +00:00
|
|
|
- "127.0.0.1:5432:5432"
|
2026-09-17 02:29:49 +00:00
|
|
|
volumes:
|
2026-09-18 18:41:33 +00:00
|
|
|
- festbench-postgres:/var/lib/postgresql/data
|
2026-09-17 02:29:49 +00:00
|
|
|
healthcheck:
|
2026-09-18 18:41:33 +00:00
|
|
|
test: ["CMD-SHELL", "pg_isready -U festbench -d festbench"]
|
2026-09-17 02:29:49 +00:00
|
|
|
interval: 5s
|
|
|
|
|
timeout: 3s
|
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
|
|
volumes:
|
2026-09-18 18:41:33 +00:00
|
|
|
festbench-postgres:
|