mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-27 16:24:04 +00:00
1.4 KiB
1.4 KiB
Deploying MailHog
Command line
You can run MailHog locally from the command line.
go get github.com/ian-kent/MailHog/MailHog
MailHog
To configure MailHog, use the environment variables or command line flags described in the README.
Using supervisord/upstart/etc
MailHog can be started as a daemon using supervisord/upstart/etc.
See this example init script and this Ansible role by geerlingguy.
Docker
The example Dockerfile can be used to run MailHog in a Docker container.
Elastic Beanstalk
You can deploy Go-MailHog using AWS Elastic Beanstalk.
- Open the Elastic Beanstalk console
- Create a zip file containing the Dockerfile and MailHog binary
- Create a new Elastic Beanstalk application
- Launch a new environment and upload the zip file
If you're using in-memory storage, you can only use a single instance of Go-MailHog. To use a load balanced EB application, use MongoDB backed storage.
To configure your Elastic Beanstalk MailHog instance, either:
- Set environment variables using the Elastic Beanstalk console
- Edit the Dockerfile to pass in command line arguments