provides SMTP_PORT, SMTP_USER and SMTP_PASSWORD explicitly in compose.yml ;(

This commit is contained in:
2026-06-25 18:54:13 +01:00
parent 1ef4c22ec6
commit 74f1df6893
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -23,12 +23,13 @@ services:
context: . context: .
dockerfile: smtp.Dockerfile dockerfile: smtp.Dockerfile
args: args:
LOCAL_SMTP_PORT: $LOCAL_SMTP_PORT SMTP_PORT: 2500
env_file: env_file:
- .env - .env
environment: environment:
SMTP_PORT: $LOCAL_SMTP_PORT SMTP_PORT: 2500
SMTP_PASSWORD: $LOCAL_SMTP_PORT SMTP_USER: smtp
SMTP_PASSWORD: smtp
REMOTE_SMTP_PASSWORD_FILE: /run/secrets/remote_smtp_password REMOTE_SMTP_PASSWORD_FILE: /run/secrets/remote_smtp_password
secrets: secrets:
- remote_smtp_password - remote_smtp_password
+2 -2
View File
@@ -1,5 +1,5 @@
FROM git.joeac.net/joeac/armv7/msmtp:1.8.32-alpine3.23 FROM git.joeac.net/joeac/armv7/msmtp:1.8.32-alpine3.23
RUN apk --no-cache add gettext gnutls RUN apk --no-cache add gettext gnutls
ARG LOCAL_SMTP_PORT ARG SMTP_PORT
EXPOSE $LOCAL_SMTP_PORT EXPOSE $SMTP_PORT
COPY smtp/.msmtprc ./ COPY smtp/.msmtprc ./