update mailhog

This commit is contained in:
kev 2022-02-15 15:24:54 +08:00
parent d8aeb1681b
commit 72a70a274c
3 changed files with 14 additions and 2 deletions

View File

@ -7,7 +7,7 @@ mailhog
- View messages in the web UI, or retrieve them with the JSON API - View messages in the web UI, or retrieve them with the JSON API
- Optionally release messages to real SMTP servers for delivery - Optionally release messages to real SMTP servers for delivery
``` ```bash
$ mkdir data $ mkdir data
$ chown 1000:1000 data $ chown 1000:1000 data
$ docker-compose up -d $ docker-compose up -d

View File

@ -0,0 +1,11 @@
{
"gmail": {
"name": "gmail",
"host": "smtp.gmail.com",
"port": "587",
"email": "username@gmail.com",
"username": "username",
"password": "password",
"mechanism": "PLAIN"
}
}

View File

@ -4,10 +4,11 @@ services:
image: mailhog/mailhog image: mailhog/mailhog
ports: ports:
- "1025:1025" - "1025:1025"
- "9025:8025" - "8025:8025"
volumes: volumes:
- ./data:/data - ./data:/data
environment: environment:
- MH_STORAGE=maildir - MH_STORAGE=maildir
- MH_MAILDIR_PATH=/data - MH_MAILDIR_PATH=/data
- MH_OUTGOING_SMTP=/data/outgoing-smtp.json
restart: unless-stopped restart: unless-stopped