From 45200bd57f92dd70c4678782c706d0ff7abea733 Mon Sep 17 00:00:00 2001 From: Bernhard Sirlinger Date: Mon, 13 Nov 2023 22:40:15 +0100 Subject: [PATCH] feat: add optional mailpit configuration (#1269) --- devcontainer-example/docker-compose.yml | 16 ++++++++++++++++ docs/development.md | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/devcontainer-example/docker-compose.yml b/devcontainer-example/docker-compose.yml index c73dd066..e27b8daa 100644 --- a/devcontainer-example/docker-compose.yml +++ b/devcontainer-example/docker-compose.yml @@ -20,6 +20,21 @@ services: # volumes: # - postgresql-data:/var/lib/postgresql/data + # Enable Mailpit if you need to test outgoing mail services + # See https://mailpit.axllent.org/ + # mailpit: + # image: axllent/mailpit + # volumes: + # - mailpit-data:/data + # ports: + # - 8025:8025 + # - 1025:1025 + # environment: + # MP_MAX_MESSAGES: 5000 + # MP_DATA_FILE: /data/mailpit.db + # MP_SMTP_AUTH_ACCEPT_ANY: 1 + # MP_SMTP_AUTH_ALLOW_INSECURE: 1 + redis-cache: image: docker.io/redis:alpine @@ -69,3 +84,4 @@ services: volumes: mariadb-data: #postgresql-data: + #mailpit-data: diff --git a/docs/development.md b/docs/development.md index 27d0eecc..54690a3e 100644 --- a/docs/development.md +++ b/docs/development.md @@ -408,3 +408,8 @@ This script will install required deps, enable X11Forwarding and restart SSH dae > More references : [Cypress Official Documentation](https://www.cypress.io/blog/2019/05/02/run-cypress-with-a-single-docker-command) > Ensure DISPLAY environment is always exported. + +## Using Mailpit to test mail services + +To use Mailpit just uncomment the service in the docker-compose.yml file. +The Interface is then available under port 8025 and the smtp service can be used as mailpit:1025.