| 1 | # Layered over ../compose.yaml by e2e.sh: a mail catcher, a webhook receiver, |
| 2 | # and webhooks allowed to reach it on the compose network. |
| 3 | services: |
| 4 | mailpit: |
| 5 | image: axllent/mailpit:latest |
| 6 | environment: |
| 7 | MP_SMTP_AUTH_ACCEPT_ANY: "1" |
| 8 | MP_SMTP_AUTH_ALLOW_INSECURE: "1" |
| 9 | ports: |
| 10 | - "${E2E_MAILPIT_PORT:-8025}:8025" |
| 11 | |
| 12 | hooks: |
| 13 | image: node:22-alpine |
| 14 | command: ["node", |
| 15 | volumes: |
| 16 | - ./test/hooks.mjs:/hooks.mjs:ro |
| 17 | ports: |
| 18 | - "${E2E_HOOKS_PORT:-38090}:8080" |
| 19 | |
| 20 | api: |
| 21 | depends_on: |
| 22 | mailpit: |
| 23 | condition: service_started |
| 24 | environment: |
| 25 | WEBHOOK_ALLOW_PRIVATE_NETWORKS: "true" |
| 26 | |
| 27 | delivery: |
| 28 | environment: |
| 29 | WEBHOOK_ALLOW_PRIVATE_NETWORKS: "true" |