TLS for mail

This commit is contained in:
Daniel Meiburg 2023-07-27 18:35:19 +02:00
parent a0ff9f810b
commit f2839aa9e0
Signed by: dm
GPG Key ID: E5827ECFFE0AA4F2
2 changed files with 8 additions and 3 deletions

View File

@ -3,7 +3,11 @@ services:
image: ghcr.io/docker-mailserver/docker-mailserver:latest image: ghcr.io/docker-mailserver/docker-mailserver:latest
container_name: mailserver container_name: mailserver
# Provide the FQDN of your mail server here (Your DNS MX record should point to this value) # Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
hostname: dmeiburg.de hostname: mail.dmeiburg.de
environments:
- SSL_TYPE=letsencrypt
- VIRTUAL_HOST=mail.dmeiburg.de
- LETSENCRYPT_HOST=mail.dmeiburg.de
env_file: .env env_file: .env
# More information about the mail-server ports: # More information about the mail-server ports:
# https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/ # https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/
@ -20,6 +24,7 @@ services:
- ./docker-data/dms/mail-logs/:/var/log/mail/ - ./docker-data/dms/mail-logs/:/var/log/mail/
- ./docker-data/dms/config/:/tmp/docker-mailserver/ - ./docker-data/dms/config/:/tmp/docker-mailserver/
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /certs:/etc/letsencrypt:ro
restart: always restart: always
stop_grace_period: 1m stop_grace_period: 1m
# Uncomment if using `ENABLE_FAIL2BAN=1`: # Uncomment if using `ENABLE_FAIL2BAN=1`:

View File

@ -12,7 +12,7 @@ services:
- ./conf/my_proxy.conf:/etc/nginx/conf.d/my_proxy.conf - ./conf/my_proxy.conf:/etc/nginx/conf.d/my_proxy.conf
- vhost:/etc/nginx/vhost.d - vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html - html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro - /certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro - /var/run/docker.sock:/tmp/docker.sock:ro
acme-companion: acme-companion:
@ -23,7 +23,7 @@ services:
volumes_from: volumes_from:
- nginx-proxy - nginx-proxy
volumes: volumes:
- certs:/etc/nginx/certs:rw - /certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh - acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro