Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description


This is a super simple python server I wrote for a friend, to enable his clients to contact him directly from his web page.

It exposes two endpoints:

  1. /ping used for health-checking
  2. /emails/send used for sending emails to him directly. Options: email, name, phone, comment.


Mandrill account. See config.yml.sample


PYMAILER_HOME is set by default to /etc/pymailer/ so you should mount volume with a configuration file to /etc/pymailer.

To download (pull) and run the container:

$ docker pull iaintshine/pymailer
$ docker run -d --log-driver=syslog --restart=always -v /etc/pymailer:/etc/pymailer:ro -p iaintshine/pymailer


$ PYMAILER_HOME=$(pwd) python

or using gunicorn

$ PYMAILER_HOME=$(pwd) gunicorn -b mailer:app

To build the container:

$ docker build -t pymailer .

To run container in interactive mode:

$ docker run -it -v $(pwd):/etc/pymailer:ro -p pymailer
Docker Pull Command
Source Repository