diff options
-rw-r--r-- | Applications/Services/mail/server/.env.example | 2 | ||||
-rw-r--r-- | Applications/Services/mail/server/docker-compose.yml | 7 |
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" |