1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-24 07:48:38 +00:00

add mailhog

This commit is contained in:
kev 2021-09-02 18:02:39 +08:00
parent 166e2e2c31
commit 5c98f2c83b
3 changed files with 43 additions and 0 deletions

@ -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

@ -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

@ -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