Files
edr-platform/e2e/docker-compose.yml
Muluhabt c4f54a666b test: add EDR passenger pricing/config E2E bug-hunt harness
Hermetic E2E harness targeting pricing integrity and backoffice config:
- e2e/ docker Postgres (5544) + prepare.sh/run.sh one-command runner + HTML report
- 6 suites / 23 tests reproducing pricing, FX, wallet, refund, config and auth
  defects (see docs/ISSUES.md); docs/e2e-test-matrix.md documents the matrix
- two-tier harness (slim module boot + direct service instantiation) to work
  around the IAM/RabbitMQ/file-type boot wall
- .env.test.example tracked; loader falls back to it for fresh checkouts

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 16:22:40 +03:00

24 lines
825 B
YAML

# 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