Support SMTP relay configuration

Hopefully this doesn't bork existing relay configs
This commit is contained in:
decentral1se
2021-06-02 08:24:33 +02:00
parent 8399631c81
commit 9fa2b2d1b7
4 changed files with 26 additions and 1 deletions
+10
View File
@@ -4,8 +4,13 @@ version: "3.8"
services:
app:
entrypoint: /docker-entrypoint.mailrelay.sh
secrets:
- smtp_password
environment:
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_AUTH=${SMTP_AUTH}
- SMTP_TLS=${SMTP_TLS}
- MAIL_FROM=${MAIL_FROM}
configs:
- source: mstmp_conf
@@ -23,3 +28,8 @@ configs:
name: ${STACK_NAME}_entrypoint_mailrelay_${ENTRYPOINT_MAILRELAY_CONF_VERSION}
file: entrypoint.mailrelay.sh.tmpl
template_driver: golang
secrets:
smtp_password:
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}
external: true