services:
postgres:
image: postgres:16
container_name: decision_cockpit_pg
restart: unless-stopped
environment:
POSTGRES_USER: cockpit
POSTGRES_PASSWORD: cockpit
POSTGRES_DB: decision_cockpit
ports:
- "5432:5432"
volumes:
- cockpit_pg_data:/var/lib/postgresql/data
healthcheck:
test:
interval: 5s
timeout: 5s
retries: 5
volumes:
cockpit_pg_data: