2020-09-21 11:54:31 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
2016-04-24 15:37:10 +00:00
|
|
|
services:
|
|
|
|
mail:
|
2017-10-09 17:00:48 +00:00
|
|
|
image: tvial/docker-mailserver:latest
|
2018-02-07 18:37:26 +00:00
|
|
|
hostname: ${HOSTNAME}
|
|
|
|
domainname: ${DOMAINNAME}
|
|
|
|
container_name: ${CONTAINER_NAME}
|
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
|
|
|
|
- ./config/:/tmp/docker-mailserver/
|
2019-09-20 16:40:37 +00:00
|
|
|
env_file:
|
2020-09-21 11:54:31 +00:00
|
|
|
- .env
|
|
|
|
- env-mailserver
|
2016-04-24 15:37:10 +00:00
|
|
|
cap_add:
|
2020-09-21 11:54:31 +00:00
|
|
|
- NET_ADMIN
|
|
|
|
- SYS_PTRACE
|
2017-03-16 15:45:47 +00:00
|
|
|
restart: always
|
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:
|