docs: add guide to using MailHog with Docker (#42047)

docs: add guide to using MailHog with Docker
This commit is contained in:
Oliver Eyton-Williams
2021-05-07 14:14:04 +02:00
committed by GitHub
parent af3c411de6
commit 54df230b8e

View File

@ -10,12 +10,31 @@ MailHog can be installed on macOS, Windows and Linux.
- [Introduction](#introduction) - [Introduction](#introduction)
- [Installing MailHog](#installing-mailhog) - [Installing MailHog](#installing-mailhog)
- [Installing MailHog with Docker](#installing-mailhog-with-docker)
- [Installing MailHog on macOS](#installing-mailhog-on-macos) - [Installing MailHog on macOS](#installing-mailhog-on-macos)
- [Installing MailHog on Windows](#installing-mailhog-on-windows) - [Installing MailHog on Windows](#installing-mailhog-on-windows)
- [Installing MailHog on Linux](#installing-mailhog-on-linux) - [Installing MailHog on Linux](#installing-mailhog-on-linux)
- [Using MailHog](#using-mailhog) - [Using MailHog](#using-mailhog)
- [Useful Links](#useful-links) - [Useful Links](#useful-links)
### Installing MailHog with Docker
If you have Docker installed then you can use
```bash
docker run -d --name mailhog --rm mailhog/mailhog
```
to start MailHog in the background and
```bash
docker stop mailhog
```
to stop it.
When the installation completes, you can start [using MailHog](#using-mailhog).
### Installing MailHog on macOS ### Installing MailHog on macOS
Install MailHog on macOS with [Homebrew](https://brew.sh/): Install MailHog on macOS with [Homebrew](https://brew.sh/):