Yet another incoming mailgun mail to slack utility.
For ease of use, containerized (Docker Hub)
and configured with environment variables.
Heavily inspired by chaidarun.com/slack-emails & artnc/router.py.
-
Create an
.env
file based on.env.sample
from the repository -
Run the container and pass env file with...
... Docker:docker run -d -p 8000:80 --env-file .env thelay/mailgun-slack-announcer:latest
... Docker Compose (forwarding output to port 8000):
version: "3.7" services: mailgun: container_name: mailgun image: thelay/mailgun-slack-announcer:latest restart: unless-stopped env_file: - .env ports: - "8000:80"
In addition to env variables defined in .env
, the docker image can take advantage of base image
tiangolo/meinheld-gunicorn-flask-docker
and use
its environment variables.
Maybe one day? For now change template in main.py
.
You can find all available message parameters that come from mailgun on their docs.