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