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