test(identity): add isolated browser mail fixture
This commit is contained in:
1 parent
86f562f5b6
commit
24638d46d2
20 files changed
+885
-20
No files matched your search
@@ -0,0 +1,58 @@
|
||||
# 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
|
||||
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"
|
||||
|
||||
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
|
||||
Reference in new issue
Block a user