summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-12-21 14:39:05 +0100
committerDaniel Weipert <code@drogueronin.de>2023-12-21 14:39:05 +0100
commit32d4c527430ea642839f8b48357f1ea0a08154e1 (patch)
tree648ce0b82db6cabbabfdc23cf48150704b736fd5
parentccd555942dbfe5337c2f0879997d1b6449ef2f03 (diff)
[services/mail/server] change environment variable DOMAIN to MAIL_SERVER_DOMAIN
-rw-r--r--Applications/Services/mail/server/.env.example2
-rw-r--r--Applications/Services/mail/server/docker-compose.yml7
2 files changed, 5 insertions, 4 deletions
diff --git a/Applications/Services/mail/server/.env.example b/Applications/Services/mail/server/.env.example
index 2a8c38b..9600c78 100644
--- a/Applications/Services/mail/server/.env.example
+++ b/Applications/Services/mail/server/.env.example
@@ -1,4 +1,4 @@
-DOMAIN=mail.example.org
+MAIL_SERVER_DOMAIN=mail.example.org
TRAEFIK_NETWORK=traefik-public
TRAEFIK_VOLUME_LETSENCRYPT=traefik-letsencrypt
REMOTE_DOMAIN=
diff --git a/Applications/Services/mail/server/docker-compose.yml b/Applications/Services/mail/server/docker-compose.yml
index 921a744..1582a8a 100644
--- a/Applications/Services/mail/server/docker-compose.yml
+++ b/Applications/Services/mail/server/docker-compose.yml
@@ -3,17 +3,18 @@ version: "3"
services:
mailserver:
image: "ghcr.io/docker-mailserver/docker-mailserver"
- hostname: "${DOMAIN}"
+ hostname: "${MAIL_SERVER_DOMAIN}"
restart: "unless-stopped"
stop_grace_period: "1m"
cap_add:
- NET_ADMIN
ports:
+ - "25:25"
- "465:465"
- "993:993"
environment:
- "SSL_TYPE=letsencrypt"
- - "SSL_DOMAIN=${DOMAIN}"
+ - "SSL_DOMAIN=${MAIL_SERVER_DOMAIN}"
- "ONE_DIR=1"
env_file: .env.mailserver
volumes:
@@ -37,7 +38,7 @@ services:
- traefik
labels:
- "traefik.enable=true"
- - "traefik.http.routers.mailserver-proxy.rule=Host(`${DOMAIN}`)"
+ - "traefik.http.routers.mailserver-proxy.rule=Host(`${MAIL_SERVER_DOMAIN}`)"
- "traefik.http.routers.mailserver-proxy.entrypoints=websecure"
- "traefik.http.routers.mailserver-proxy.tls.certresolver=letsencrypt"