An Alpine Linux based Docker container providing a mailcatcher for development environments.
It listens for SMTP connections on port 1025 and provides a frontend interface on port 1080.
... via docker container run
docker container run -p 1025:1025 -p 1080:1080 shuppet/mailcatcher:latest ... via docker stack deploy or docker-compose
services: mailcatcher: image: shuppet/mailcatcher:0.7.1 ports: - 0.0.0.0:1025:1025/tcp - 0.0.0.0:1080:1080/tcp version: '3.7'You must provide two build-time arguments when building this Docker image, BUILD_DATE and BUILD_VERSION.
docker build \ --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ --build-arg BUILD_VERSION=0.7.1 \ -t shuppet/mailcatcher:0.7.1 \ -t shuppet/mailcatcher:latest \ $PWDThen the resulting image can be pushed to the shuppet/mailcatcher Docker Hub repository:
docker push shuppet/mailcatcher:0.7.1