2016-04-24 15:37:10 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
mail:
|
2017-10-09 17:00:48 +00:00
|
|
|
image: tvial/docker-mailserver:latest
|
2016-04-24 15:37:10 +00:00
|
|
|
hostname: mail
|
|
|
|
domainname: domain.com
|
|
|
|
container_name: mail
|
|
|
|
ports:
|
|
|
|
- "25:25"
|
|
|
|
- "143:143"
|
|
|
|
- "587:587"
|
|
|
|
- "993:993"
|
|
|
|
volumes:
|
2016-05-08 17:01:42 +00:00
|
|
|
- maildata:/var/mail
|
2016-12-25 21:54:37 +00:00
|
|
|
- mailstate:/var/mail-state
|
2016-04-24 15:37:10 +00:00
|
|
|
- ./config/:/tmp/docker-mailserver/
|
|
|
|
environment:
|
2016-12-25 21:54:37 +00:00
|
|
|
- ENABLE_SPAMASSASSIN=1
|
|
|
|
- ENABLE_CLAMAV=1
|
2016-04-24 15:37:10 +00:00
|
|
|
- ENABLE_FAIL2BAN=1
|
2016-12-25 21:54:37 +00:00
|
|
|
- ONE_DIR=1
|
|
|
|
- DMS_DEBUG=0
|
2016-04-24 15:37:10 +00:00
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
2017-10-10 06:15:18 +00:00
|
|
|
- SYS_PTRACE
|
2017-03-16 15:45:47 +00:00
|
|
|
restart: always
|
2016-04-24 15:37:10 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
maildata:
|
|
|
|
driver: local
|
2016-12-25 21:54:37 +00:00
|
|
|
mailstate:
|
|
|
|
driver: local
|