2016-04-24 15:37:10 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
mail:
|
2016-12-25 21:54:37 +00:00
|
|
|
image: tvial/docker-mailserver:v2.1
|
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
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
maildata:
|
|
|
|
driver: local
|
2016-12-25 21:54:37 +00:00
|
|
|
mailstate:
|
|
|
|
driver: local
|