container-server/mail/docker-compose.yml

42 lines
930 B
YAML
Raw Normal View History

2019-11-05 20:58:51 +01:00
version: '3.7'
networks:
mail:
name: mail
services:
mail:
2019-12-05 23:02:28 +01:00
image: tvial/docker-mailserver
container_name: mail
2019-12-04 22:00:35 +01:00
restart: "${RESTART:-no}"
2019-12-05 23:02:28 +01:00
hostname: mail
domainname: ${BASE_DOMAIN}
2019-11-05 20:58:51 +01:00
ports:
- "25:25"
- "143:143"
2019-12-05 23:02:28 +01:00
- "587:587"
2019-11-05 20:58:51 +01:00
- "993:993"
environment:
2019-12-05 23:02:28 +01:00
- SSL_TYPE=manual
- SSL_CERT_PATH=/etc/certs/${BASE_DOMAIN}.crt
- SSL_KEY_PATH=/etc/certs/${BASE_DOMAIN}.key
- PERMIT_DOCKER=connected-networks
- ONE_DIR=1
- DMS_DEBUG=1
- ENABLE_MANAGESIEVE=1
- ENABLE_SPAMASSASSIN=0
- ENABLE_CLAMAV=0
- ENABLE_FAIL2BAN=0
- ENABLE_POSTGREY=0
2019-11-05 20:58:51 +01:00
volumes:
2019-12-05 23:02:28 +01:00
- ${CERTS_DIR}/${BASE_DOMAIN}:/etc/certs
- /srv/mail/config/:/tmp/docker-mailserver/
- /srv/mail/data:/var/mail
- /srv/mail/state:/var/mail-state
- /srv/mail/logs:/var/log/mail
# cap_add:
# - NET_ADMIN
2019-11-05 20:58:51 +01:00
networks:
- mail