container-server/mail/docker-compose.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

2019-11-05 20:58:51 +01:00
version: '3.7'
2020-02-04 19:05:07 +01:00
# https://github.com/tomav/docker-mailserver/blob/master/README.md
2019-11-05 20:58:51 +01:00
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
2020-03-01 00:02:11 +01:00
- SPOOF_PROTECTION=1
2019-11-05 20:58:51 +01:00
volumes:
2019-12-05 23:02:28 +01:00
- ${CERTS_DIR}/${BASE_DOMAIN}:/etc/certs
2019-12-25 15:48:01 +01:00
- ${BASE_DIR:-/srv}/mail/config/:/tmp/docker-mailserver/
- ${BASE_DIR:-/srv}/mail/data:/var/mail
- ${BASE_DIR:-/srv}/mail/state:/var/mail-state
- ${BASE_DIR:-/srv}/mail/logs:/var/log/mail
2019-12-05 23:02:28 +01:00
# cap_add:
# - NET_ADMIN
2019-11-05 20:58:51 +01:00
networks:
- mail