mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
update mailhog
This commit is contained in:
parent
d8aeb1681b
commit
72a70a274c
@ -7,7 +7,7 @@ mailhog
|
||||
- View messages in the web UI, or retrieve them with the JSON API
|
||||
- Optionally release messages to real SMTP servers for delivery
|
||||
|
||||
```
|
||||
```bash
|
||||
$ mkdir data
|
||||
$ chown 1000:1000 data
|
||||
$ docker-compose up -d
|
||||
|
11
mailhog/data/outgoing-smtp.json
Normal file
11
mailhog/data/outgoing-smtp.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"gmail": {
|
||||
"name": "gmail",
|
||||
"host": "smtp.gmail.com",
|
||||
"port": "587",
|
||||
"email": "username@gmail.com",
|
||||
"username": "username",
|
||||
"password": "password",
|
||||
"mechanism": "PLAIN"
|
||||
}
|
||||
}
|
@ -4,10 +4,11 @@ services:
|
||||
image: mailhog/mailhog
|
||||
ports:
|
||||
- "1025:1025"
|
||||
- "9025:8025"
|
||||
- "8025:8025"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
environment:
|
||||
- MH_STORAGE=maildir
|
||||
- MH_MAILDIR_PATH=/data
|
||||
- MH_OUTGOING_SMTP=/data/outgoing-smtp.json
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user