2020-10-18 14:54:23 +02:00
|
|
|
version: '3.8'
|
2020-09-21 13:54:31 +02:00
|
|
|
|
2016-04-24 17:37:10 +02:00
|
|
|
services:
|
2021-01-16 10:16:05 +01:00
|
|
|
mailserver:
|
|
|
|
image: docker.io/mailserver/docker-mailserver:latest
|
2021-09-20 09:27:55 +02:00
|
|
|
hostname: mail
|
|
|
|
domainname: example.com
|
2021-05-11 12:15:34 +02:00
|
|
|
container_name: mailserver
|
2021-01-16 10:16:05 +01:00
|
|
|
env_file: mailserver.env
|
2021-03-23 14:22:40 +01:00
|
|
|
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
|
2021-04-15 23:02:55 +02:00
|
|
|
# More information about the mailserver ports:
|
|
|
|
# https://docker-mailserver.github.io/docker-mailserver/edge/config/security/understanding-the-ports/
|
2016-04-24 17:37:10 +02:00
|
|
|
ports:
|
2021-04-15 23:02:55 +02:00
|
|
|
- "25:25" # SMTP (explicit TLS => STARTTLS)
|
|
|
|
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
|
|
|
|
- "465:465" # ESMTP (implicit TLS)
|
|
|
|
- "587:587" # ESMTP (explicit TLS => STARTTLS)
|
|
|
|
- "993:993" # IMAP4 (implicit TLS)
|
2016-04-24 17:37:10 +02:00
|
|
|
volumes:
|
2021-06-16 13:24:36 +02:00
|
|
|
- ./data/maildata:/var/mail
|
|
|
|
- ./data/mailstate:/var/mail-state
|
|
|
|
- ./data/maillogs:/var/log/mail
|
2021-03-14 20:45:08 +01:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2021-05-11 12:15:34 +02:00
|
|
|
- ./config/:/tmp/docker-mailserver/
|
2017-03-16 16:45:47 +01:00
|
|
|
restart: always
|
2021-04-11 14:51:43 +02:00
|
|
|
stop_grace_period: 1m
|
2021-09-20 09:27:55 +02:00
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- SYS_PTRACE
|
|
|
|
|