docs: add guide to using MailHog with Docker (#42047)
docs: add guide to using MailHog with Docker
This commit is contained in:
committed by
GitHub
parent
af3c411de6
commit
54df230b8e
@ -10,12 +10,31 @@ MailHog can be installed on macOS, Windows and Linux.
|
||||
|
||||
- [Introduction](#introduction)
|
||||
- [Installing MailHog](#installing-mailhog)
|
||||
- [Installing MailHog with Docker](#installing-mailhog-with-docker)
|
||||
- [Installing MailHog on macOS](#installing-mailhog-on-macos)
|
||||
- [Installing MailHog on Windows](#installing-mailhog-on-windows)
|
||||
- [Installing MailHog on Linux](#installing-mailhog-on-linux)
|
||||
- [Using MailHog](#using-mailhog)
|
||||
- [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
|
||||
|
||||
Install MailHog on macOS with [Homebrew](https://brew.sh/):
|
||||
|
Reference in New Issue
Block a user