diff --git a/README.md b/README.md index 6b0caec..2c08b8e 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/mailhog/README.md b/mailhog/README.md new file mode 100644 index 0000000..d89828e --- /dev/null +++ b/mailhog/README.md @@ -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: +RCPT TO: +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 diff --git a/mailhog/docker-compose.yml b/mailhog/docker-compose.yml new file mode 100644 index 0000000..b343f39 --- /dev/null +++ b/mailhog/docker-compose.yml @@ -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