Add maildev container for debugging emails (#22425)

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
Daniel Biegler
2024-05-08 10:31:56 +02:00
committed by GitHub
parent 0d6c6b90b0
commit 438b423171
2 changed files with 20 additions and 4 deletions

View File

@@ -1,10 +1,20 @@
# This compose file is meant to spin up a copy of all supported database vendors + Redis and S3 (Minio).
# For production use see the docker compose file example in the docs:
# https://docs.directus.io/self-hosted/docker-guide.html#example-docker-compose
# This compose file is meant to spin up a copy of supported database vendors,
# Redis, S3 (Minio) and a fake SMTP server (MailDev).
#
# ONLY FOR DEBUGGING. THIS IS NOT INTENDED FOR PRODUCTION USE.
#
# For production use see the docker compose file example in the docs:
# https://docs.directus.io/self-hosted/docker-guide.html#example-docker-compose
#
# For receiving emails via MailDev, you'll need to add the following to your env:
# EMAIL_FROM=directus@directus.io
# EMAIL_TRANSPORT=smtp
# EMAIL_SMTP_HOST=0.0.0.0
# EMAIL_SMTP_PORT=1025
#
# Ports:
# Maildev SMTP: 1025
# Maildev Web-UI: 1080
# Postgres: 5100
# MySQL (8): 5101
# MariaDB: 5102
@@ -158,3 +168,9 @@ services:
DB_VENDOR: h2
ports:
- 5110:8080
maildev:
image: maildev/maildev
ports:
- 1025:1025
- 1080:1080

View File

@@ -59,7 +59,7 @@ mandatory in production.
Also the [Database Configuration](https://docs.directus.io/self-hosted/config-options.html#database) must be specified.
You might want to use the [docker-compose.yml](https://github.com/directus/directus/blob/main/docker-compose.yml) file
to spin up a test database.
to spin up a test database or a local mail server.
:::