Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 1.28 KB

1-byo.md

File metadata and controls

47 lines (40 loc) · 1.28 KB

Clone the repo and build it yourself

If you want to make changes to this project (e.g. alter the email templates), or don't trust me to not sneak malicious things in the image published on Docker Hub, you can simply fork this project and build your own image:

git clone https://github.com/matthiasmullie/post-to-email.git # or your own fork
cd post-to-email
# optional: make your changes here

You can now build & run your own Docker image:

docker build -t post-to-email .
docker run -d \
  --name=post-to-email \
  -p 8080:80 \
  -e ALLOW_ORIGIN="*" \
  -e DSN="smtp://user:[email protected]:port" \
  -e RECIPIENT="Matthias Mullie <[email protected]>" \
  post-to-email

Or run it with a docker-compose.yml that looks something like this:

version: '3.4'
services:
  post-to-email:
    restart: unless-stopped
    build: .
    container_name: post-to-email
    environment:
      - ALLOW_ORIGIN=*
      - DSN=smtp://user:[email protected]:port
      - RECIPIENT=Matthias Mullie <[email protected]>
    ports:
      - '8080:80'
    healthcheck:
      test: 'curl --fail http://localhost:80/[email protected]'
      interval: 1m
      timeout: 10s
      retries: 3
      start_period: 20s

Or deploy your own repo on a PaaS.