Sign inSign up

lakuapik/mailslurper-alpine

By lakuapik

•Updated over 5 years ago

This is an alpine build for MailSlurper

Image
0

866

lakuapik/mailslurper-alpine repository overview

⁠MailSlurper Alpine

mailsluper image size pulls

MailSlurper is a small SMTP mail server that slurps mail into oblivion! MailSlurper is perfect for individual developers or small teams writing mail-enabled applications that wish to test email functionality without the risk or hassle of installing and configuring a full blown email server. It's simple to use! Simply setup MailSlurper, configure your code and/or application server to send mail through the address where MailSlurper is running, and start sending emails! MailSlurper will capture those emails into a database for you to view at your leisure.

This is an alpine build for MailSlurper⁠.

⁠Usage

⁠Configuration

Example of config.json file

{
    "wwwAddress": "0.0.0.0",
    "wwwPort": 8080,
    "wwwPublicURL": "",
    "serviceAddress": "0.0.0.0",
    "servicePort": 8085,
    "servicePublicURL": "",
    "smtpAddress": "0.0.0.0",
    "smtpPort": 2500,
    "dbEngine": "SQLite",
    "dbHost": "",
    "dbPort": 0,
    "dbDatabase": "./mailslurper.db",
    "dbUserName": "",
    "dbPassword": "",
    "maxWorkers": 1000,
    "autoStartBrowser": false,
    "keyFile": "",
    "certFile": "",
    "adminKeyFile": "",
    "adminCertFile": ""
}

Please refer to MailSlurper Wiki⁠.

⁠Running the image
# run and let go
$ docker run -p 2500:2500 -p 8080:8080 -p 8085:8085 --rm lakuapik/mailslurper-alpine

# or with custom config
$ docker run \
-v $PWD/config.json:/mailslurper/config.json \
-p 2500:2500 -p 8080:8080 -p 8085:8085 \
lakuapik/mailslurper-alpine
⁠Using docker-compose
version: "3"
services:
    # ....
    mailslurper: # for mail catcher
        image: lakuapik/mailslurper-alpine:latest
        ports:
            - "${FORWARD_MAILSLURPER_PUBLIC_PORT:-8080}:8080"
            - "${FORWARD_MAILSLURPER_SERVICE_PORT:-8085}:8085"
            - "${FORWARD_MAILSLURPER_SMTP_PORT:-2500}:2500"
        network_mode: bridge
        healthcheck:
            test: [
                "CMD", "wget", "-nv", "-t1", "--spider",
                "http://localhost:${FORWARD_MAILSLURPER_PUBLIC_PORT:-8080}"
            ]
    # ....

⁠Credit

Thanks to:

Tag summary

Content type

Image

Digest

Size

13.2 MB

Last updated

over 5 years ago

docker pull lakuapik/mailslurper-alpine