services:
db:
image: postgres:16
container_name: dbschema_pg
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dbschema_dev
ports:
- "5432:5432"
healthcheck:
test:
interval: 5s
timeout: 5s
retries: 10
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: