services:
postgres:
image: postgres:16-alpine
container_name: sabiql-postgres
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
POSTGRES_DB: testdb
ports:
- "5433:5432"
volumes:
- ./scripts/init.sql:/docker-entrypoint-initdb.d/01-init.sql
- ./scripts/seed.sql:/docker-entrypoint-initdb.d/02-seed.sql
- postgres_data:/var/lib/postgresql/data
healthcheck:
test:
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: