Lightweight image of oficial mailhog via multistage build.
323
Docker Mailhog
You need Docker runtime installed, and access to a user that can download, build and run docker images.
git clone https://github.com/aurexs/docker-mailhog
cd docker-mailhog
docker build -t mailhog:alpine -t mailhog:latest .
docker run --restart always --name mailhog -p 1025:1025 -p 8025:8025 -d mailhog:alpine
docker run --restart always --name mailhog -p 1025:1025 -p 8025:8025 -d aurexs/mailhog:latest
There are also pre-built versions under cd2team/mailhog with latest tag for rolling release built, tagged and pushed using Github Actions. It's not robustly tested, but the tagging strategy used also means a timestamp release is published to ensure you can pin dependency versions.
The additional {timestamp} version of tags make it easy to maintain history when re-tagging a latest and alpine. If you encounter issues with a latest tag, please try the timestamp from your last successful build, which will share a hash with your last working latest.
docker ps -a show mailhog Status as "Up {n} Hours|Mins|Secs|Days")Content type
Image
Digest
Size
9.6 MB
Last updated
over 4 years ago
docker pull aurexs/mailhog