Sign inSign up

drumsergio/nginx-mailer

By drumsergio

•Updated 7 days ago

Image
0

4.5K

drumsergio/nginx-mailer repository overview

nginx-mailer banner

⁠nginx-mailer

CI License Docker Pulls

Docker image based on nginx:alpine that serves a static site and sends its contact form by SMTP, with optional Cloudflare Turnstile.


⁠Features

  • Serves a static site from a mounted folder with nginx on port 80.
  • Contact form endpoint POST /api/contact that emails each submission to one address.
  • SMTP over TLS (port 465) or STARTTLS (other ports).
  • Optional Cloudflare Turnstile CAPTCHA check.
  • One container: nginx and the Go mail service run under supervisord.
  • linux/amd64 image on Docker Hub.

⁠Quick start

docker run -d \
  -p 80:80 \
  -v /path/to/site:/usr/share/nginx/html:ro \
  -e SMTP_HOST=smtp.example.com \
  -e SMTP_PORT=465 \
  -e [email protected] \
  -e SMTP_PASSWORD=your-password \
  -e [email protected] \
  -e [email protected] \
  drumsergio/nginx-mailer:1.0.0

The site is served on port 80, with /api/contact and /health behind nginx. Compose and every variable are in Getting started⁠.

⁠Documentation

⁠License

GPL-3.0-or-later⁠

Tag summary

Content type

Image

Digest

sha256:85c8dc510…

Size

44.5 MB

Last updated

7 months ago

docker pull drumsergio/nginx-mailer