From 8e00726b047da3d0eda5bd0f4eca6339aadd12f0 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 8 Jan 2026 21:12:16 +0000 Subject: [PATCH] remove TODO comment block --- compose.yml | 27 +++++++++++++++++++++++++-- website/Dockerfile | 12 ------------ 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/compose.yml b/compose.yml index e5f008b..daf3ba7 100644 --- a/compose.yml +++ b/compose.yml @@ -1,7 +1,30 @@ services: website: - build: website + build: + context: website + env_file: + - .env + environment: + LOCAL_SMTP_HOST: smtp + LOCAL_SMTP_PORT: 2500 + LOCAL_SMTP_PASSWORD: smtp ports: - "8000:4321" + smtp: - build: smtp + build: + context: smtp + args: + LOCAL_SMTP_PORT: 2500 + env_file: + - .env + environment: + LOCAL_SMTP_PORT: 2500 + LOCAL_SMTP_PASSWORD: smtp + REMOTE_SMTP_PASSWORD_FILE: /run/secrets/remote_smtp_password + secrets: + - remote_smtp_password + +secrets: + remote_smtp_password: + external: true diff --git a/website/Dockerfile b/website/Dockerfile index 72690b9..2edf733 100644 --- a/website/Dockerfile +++ b/website/Dockerfile @@ -1,18 +1,6 @@ FROM node:lts-alpine3.22 AS runtime WORKDIR /app -################### TODO ################### -# - Add another service on the same network running an SMTP server such -# as msmtpd or Postfix -# - Configure the SMTP server to send emails from me@joeac.net via Zoho -# - Configure the website to use the SMTP server to send emails -# - Test -# - Push -# - Test on RPi -# - Consider: now you're running an SMTP server anyway, can you send it -# from your very own no-reply email address? -############################################ - COPY package.json package-lock.json ./ RUN npm install