mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:36 +02:00
add mailhog
This commit is contained in:
parent
166e2e2c31
commit
5c98f2c83b
@ -338,6 +338,7 @@ A collection of delicious docker recipes.
|
||||
- [x] wurstmeister/kafka
|
||||
- [x] mailgun/kafka-pixy
|
||||
- [x] devopsfaith/krakend
|
||||
- [x] mailhog/mailhog
|
||||
- [x] tootsuite/mastodon
|
||||
- [x] getmeili/meilisearch :mag:
|
||||
- [x] deluan/navidrome :musical_note:
|
||||
|
29
mailhog/README.md
Normal file
29
mailhog/README.md
Normal file
@ -0,0 +1,29 @@
|
||||
mailhog
|
||||
=======
|
||||
|
||||
[MailHog][1] is an email testing tool for developers:
|
||||
|
||||
- Configure your application to use MailHog for SMTP delivery
|
||||
- View messages in the web UI, or retrieve them with the JSON API
|
||||
- Optionally release messages to real SMTP servers for delivery
|
||||
|
||||
```
|
||||
$ mkdir data
|
||||
$ chown 1000:1000 data
|
||||
$ docker-compose up -d
|
||||
$ curl http://localhost:8025
|
||||
|
||||
$ ncat -C localhost 1025
|
||||
HELO
|
||||
MAIL FROM: <kevin@gmail.com>
|
||||
RCPT TO: <sarah@yahoo.com>
|
||||
DATA
|
||||
Subject: test
|
||||
|
||||
This is a test message.
|
||||
.
|
||||
QUIT
|
||||
^D (press Ctrl-D to exit)
|
||||
```
|
||||
|
||||
[1]: https://github.com/mailhog/MailHog/blob/master/docs/CONFIG.md
|
13
mailhog/docker-compose.yml
Normal file
13
mailhog/docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
mailhog:
|
||||
image: mailhog/mailhog
|
||||
ports:
|
||||
- "1025:1025"
|
||||
- "9025:8025"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
environment:
|
||||
- MH_STORAGE=maildir
|
||||
- MH_MAILDIR_PATH=/data
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user