Skip to content

Dockerize Mailcatcher to catch emails during development

License

Notifications You must be signed in to change notification settings

retreatguru/docker-mailcatcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker: Mailcatcher

Dockerize Mailcatcher to catch emails during development

Usage

# Run a daemon container with mailcatcher started
sudo docker run \
    -d \ # Daemon mode
    --name mailcatcher \ # Give a name to your container, so you can start/stop or link it later
    birkof/docker-mailcatcher

Now you can access to the mailcatcher smtp throught the 25 port and the web interface via http://localhost Feel free to map ports differently.

Development

# Build manually the image
make build # sudo docker build -t birkof/docker-mailcatcher .

# Test the image by running a container that launch nginx
make run # sudo docker run --rm=true -t -i -p 80:80 birkof/docker-mailcatcher
# Then check http://localhost:80

# Remove the image
make clear # sudo docker rmi -f birkof/docker-mailcatcher

About

Dockerize Mailcatcher to catch emails during development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 76.0%
  • Makefile 24.0%