# Hermetic test database for the EDR passenger E2E harness. # Isolated from any dev/prod Postgres: distinct container name + non-standard host port (5544). # Single database `edr_database` with schemas `passenger`, `iam`, `edr_payment` (see init/01-schemas.sql). services: postgres-e2e: image: postgres:17 container_name: edr-passenger-e2e-db environment: POSTGRES_USER: edr POSTGRES_PASSWORD: edr_secret POSTGRES_DB: edr_database ports: - "5544:5432" volumes: - ./init:/docker-entrypoint-initdb.d:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U edr -d edr_database"] interval: 3s timeout: 3s retries: 20 tmpfs: # Ephemeral storage — every `docker compose down` wipes the DB. Nothing to clean up. - /var/lib/postgresql/data