Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.

Rebilly/docker-mailcatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MailCatcher Docker Image

GitHub Actions status Latest Release Software License

MailCatcher runs a super simple SMTP server which catches any message sent to it to display in a web interface.

Installation

Pull the image from the GitHub Package Registry. This is the recommended method of installation as it is easier to update image.

docker pull docker.pkg.github.com/rebilly/docker-mailcatcher/mailcatcher:latest

Build the image locally

git clone git@github.com:Rebilly/docker-mailcatcher.git 
cd docker-mailcatcher
docker build -t docker.pkg.github.com/rebilly/docker-mailcatcher/mailcatcher:latest .

Quick start

Using docker-compose.yml

services:
  mailcatcher:
    restart: on-failure:10
    image: docker.pkg.github.com/rebilly/docker-mailcatcher/mailcatcher:latest
    ports:
    - "1080:1080"
    - "1025:1025"

Alternately, you can manually launch the mailcatcher container.

docker run --name='mailcatcher' -d --publish=1080:1080 --publish=1025:1025 \
    docker.pkg.github.com/rebilly/docker-mailcatcher/mailcatcher:latest

Publish changes

The image is hosted on GitHub Package Registry.

Read the Configuring Docker for use with GitHub Package Registry to learn how to publish new version of image.

There is an example:

docker login docker.pkg.github.com -u USERNAME -p TOKEN
docker build -t docker.pkg.github.com/rebilly/docker-mailcatcher/mailcatcher:latest .
docker push docker.pkg.github.com/rebilly/docker-mailcatcher/mailcatcher:latest

About

Docker MailCatcher

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors