Files
nf-mail-relay/Dockerfile
T
wmj c0b8981629 Initial commit: HTTP wrapper around the existing falah-ibaas email connector
Gives Supabase Edge Functions (and anything else outside the VPS) a real,
authenticated endpoint onto the VPS's already-working internal Postfix
relay (the same one Ghost uses in production), via the falah-ibaas
EmailConnector that was fully built but never actually deployed.

Deployed live at https://nfmailrelay.falahos.my as a Docker Swarm service
on the existing Traefik network, TLS via Let's Encrypt, shared-secret
bearer auth. Built for Nur Falah's heir notification emails.
2026-08-14 08:00:28 +08:00

9 lines
249 B
Docker

FROM python:3.12-slim
WORKDIR /app
COPY relay.py .
ENV PORT=8091
EXPOSE 8091
# The falah-ibaas email connector (handler.py) is bind-mounted at
# /opt/falah-ibaas/connectors/email at runtime — see docker service create.
CMD ["python3", "relay.py"]