services:
postgres:
image: postgres:16-alpine
container_name: backfill-test-db
environment:
POSTGRES_USER: backfill
POSTGRES_PASSWORD: backfill
POSTGRES_DB: backfill_test
ports:
- "5433:5432" volumes:
- backfill-test-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U backfill -d backfill_test"]
interval: 2s
timeout: 5s
retries: 10
command: >
postgres
-c shared_buffers=128MB
-c max_connections=100
-c synchronous_commit=off
-c fsync=off
-c full_page_writes=off
volumes:
backfill-test-data: