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
|
2018-02-07 18:37:26 +00:00
|
|
|
hostname: ${HOSTNAME}
|
|
|
|
domainname: ${DOMAINNAME}
|
|
|
|
container_name: ${CONTAINER_NAME}
|
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.
|
2016-04-24 15:37:10 +00:00
|
|
|
ports:
|
2020-09-21 11:54:31 +00:00
|
|
|
- "25:25"
|
|
|
|
- "143:143"
|
|
|
|
- "587:587"
|
|
|
|
- "993:993"
|
2016-04-24 15:37:10 +00:00
|
|
|
volumes:
|
2020-09-21 11:54:31 +00:00
|
|
|
- maildata:/var/mail
|
|
|
|
- mailstate:/var/mail-state
|
|
|
|
- maillogs:/var/log/mail
|
2021-03-14 19:45:08 +00:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2020-12-19 12:17:48 +00:00
|
|
|
- ./config/:/tmp/docker-mailserver/${SELINUX_LABEL}
|
2017-03-16 15:45:47 +00:00
|
|
|
restart: always
|
2021-04-11 12:51:43 +00:00
|
|
|
stop_grace_period: 1m
|
2021-01-16 09:16:05 +00:00
|
|
|
cap_add: [ "NET_ADMIN", "SYS_PTRACE" ]
|
2020-09-21 11:54:31 +00:00
|
|
|
|
2016-04-24 15:37:10 +00:00
|
|
|
volumes:
|
|
|
|
maildata:
|
2016-12-25 21:54:37 +00:00
|
|
|
mailstate:
|
2019-09-15 13:40:05 +00:00
|
|
|
maillogs:
|