mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +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
|
- 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
|
||||||
|
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user