diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-25 18:54:13 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-25 18:54:13 +0100 |
| commit | 74f1df689351d440f6437c511ff24ff037adfffd (patch) | |
| tree | 371e8b15f4551dd4fee1fd2a338473fc177e174a | |
| parent | 1ef4c22ec69e700583e0672bb6ef2edad32218bc (diff) | |
provides SMTP_PORT, SMTP_USER and SMTP_PASSWORD explicitly in compose.yml ;(
| -rw-r--r-- | compose.yml | 7 | ||||
| -rw-r--r-- | smtp.Dockerfile | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/compose.yml b/compose.yml index 7bd8d93..dc91b78 100644 --- a/compose.yml +++ b/compose.yml @@ -23,12 +23,13 @@ services: context: . dockerfile: smtp.Dockerfile args: - LOCAL_SMTP_PORT: $LOCAL_SMTP_PORT + SMTP_PORT: 2500 env_file: - .env environment: - SMTP_PORT: $LOCAL_SMTP_PORT - SMTP_PASSWORD: $LOCAL_SMTP_PORT + SMTP_PORT: 2500 + SMTP_USER: smtp + SMTP_PASSWORD: smtp REMOTE_SMTP_PASSWORD_FILE: /run/secrets/remote_smtp_password secrets: - remote_smtp_password diff --git a/smtp.Dockerfile b/smtp.Dockerfile index 87c4914..d615479 100644 --- a/smtp.Dockerfile +++ b/smtp.Dockerfile @@ -1,5 +1,5 @@ FROM git.joeac.net/joeac/armv7/msmtp:1.8.32-alpine3.23 RUN apk --no-cache add gettext gnutls -ARG LOCAL_SMTP_PORT -EXPOSE $LOCAL_SMTP_PORT +ARG SMTP_PORT +EXPOSE $SMTP_PORT COPY smtp/.msmtprc ./ |
