# Local registration-mail overlay. It is selected only by the explicit # registration E2E runner, never by default or release E2E. services: backend: build: context: ../../backend dockerfile: Dockerfile.e2e environment: EMAIL_PROVIDER: resend EMAIL_ACCOUNT: e2e EMAIL_FROM: no-reply@example.com RESEND_API_KEY: re_fixture_key # Keep real resend coverage bounded within this isolated test stand. VERIFICATION_MAIL_MIN_INTERVAL: 1s E2E_CONSENT_FIXTURE: "1" depends_on: mail-fixture: condition: service_healthy playwright: environment: # The runner shares the frontend network namespace, so it can reach # the fixture without publishing a host port. E2E_MAILBOX_URL: http://mail-fixture:8025/__e2e/inbox E2E_MAILBOX_TOKEN: local-e2e-mailbox-token E2E_MAIL_FIXTURE: "1" E2E_CONSENT_FIXTURE: "1" mail-fixture: build: context: ../../backend dockerfile: Dockerfile.mail-fixture expose: - "8025" read_only: true cap_drop: [ALL] security_opt: ["no-new-privileges:true"] healthcheck: test: ["CMD", "/mail-fixture", "healthcheck"] interval: 2s timeout: 3s retries: 15 start_period: 2s stop_grace_period: 5s networks: - default logging: driver: json-file options: max-size: 1m max-file: "2" deploy: resources: limits: cpus: "0.25" memory: 128M networks: default: # The fixture and browser can talk on the throwaway app network, but no # E2E container needs outbound access to a real provider. internal: true