# E2E test environment — runs a second instance of the app on port 3553 with # Turnstile disabled so Playwright can log in without the bot challenge. # Shares the postgres + pgdata volume with production so seeded e2e test users # (email pattern *@ped-ai.test) persist across test runs. # # Bring up with: # docker compose -f docker-compose.yml -f docker-compose.e2e.yml up -d pediatric-scribe-e2e # # Tear down with: # docker compose -f docker-compose.yml -f docker-compose.e2e.yml down pediatric-scribe-e2e services: pediatric-scribe-e2e: build: . image: ped-ai-local:latest ports: - "127.0.0.1:3553:3000" env_file: - .env environment: # Disable Turnstile bot-check so tests can log in without a challenge TURNSTILE_SECRET_KEY: "" # Disable SMTP so register auto-verifies the user and returns a session SMTP_HOST: "" volumes: - scribe-logs-e2e:/app/data/logs depends_on: postgres: condition: service_healthy container_name: pediatric-ai-scribe-e2e restart: unless-stopped healthcheck: test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/api/health"] interval: 30s timeout: 10s retries: 5 start_period: 20s volumes: scribe-logs-e2e: