From 32d4c527430ea642839f8b48357f1ea0a08154e1 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 21 Dec 2023 14:39:05 +0100 Subject: [services/mail/server] change environment variable DOMAIN to MAIL_SERVER_DOMAIN --- Applications/Services/mail/server/.env.example | 2 +- Applications/Services/mail/server/docker-compose.yml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'Applications/Services') 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" -- cgit v1.2.3