2016-09-29 20:52:05 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
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-09-29 20:52:05 +00:00
|
|
|
links:
|
|
|
|
- elk
|
|
|
|
ports:
|
|
|
|
- "25:25"
|
|
|
|
- "143:143"
|
|
|
|
- "587:587"
|
|
|
|
- "993:993"
|
|
|
|
volumes:
|
|
|
|
- maildata:/var/mail
|
|
|
|
- ./config/:/tmp/docker-mailserver/
|
|
|
|
environment:
|
2018-02-07 18:37:26 +00:00
|
|
|
- DMS_DEBUG=${DMS_DEBUG}
|
|
|
|
- ENABLE_CLAMAV=${ENABLE_CLAMAV}
|
|
|
|
- ONE_DIR=${ONE_DIR}
|
|
|
|
- ENABLE_POP3=${ENABLE_POP3}
|
|
|
|
- ENABLE_FAIL2BAN=${ENABLE_FAIL2BAN}
|
|
|
|
- ENABLE_MANAGESIEVE=${ENABLE_MANAGESIEVE}
|
|
|
|
- OVERRIDE_HOSTNAME=${OVERRIDE_HOSTNAME}
|
|
|
|
- POSTMASTER_ADDRESS=${POSTMASTER_ADDRESS}
|
|
|
|
- POSTSCREEN_ACTION=${POSTSCREEN_ACTION}
|
2018-03-18 19:15:06 +00:00
|
|
|
- ENABLE_SRS=${ENABLE_SRS}
|
2018-03-18 18:52:28 +00:00
|
|
|
- REPORT_RECIPIENT=${REPORT_RECIPIENT}
|
2018-05-01 17:57:31 +00:00
|
|
|
- REPORT_SENDER=${REPORT_SENDER}
|
2018-03-18 18:52:28 +00:00
|
|
|
- REPORT_INTERVAL=${REPORT_INTERVAL}
|
2018-02-07 18:37:26 +00:00
|
|
|
- SMTP_ONLY=${SMTP_ONLY}
|
|
|
|
- SSL_TYPE=${SSL_TYPE}
|
|
|
|
- PERMIT_DOCKER=${PERMIT_DOCKER}
|
|
|
|
- VIRUSMAILS_DELETE_DELAY=${VIRUSMAILS_DELETE_DELAY}
|
|
|
|
- ENABLE_POSTFIX_VIRTUAL_TRANSPORT=${ENABLE_POSTFIX_VIRTUAL_TRANSPORT}
|
|
|
|
- POSTFIX_DAGENT=${POSTFIX_DAGENT}
|
|
|
|
- ENABLE_SPAMASSASSIN=${ENABLE_SPAMASSASSIN}
|
|
|
|
- SA_TAG=${SA_TAG}
|
|
|
|
- SA_TAG2=${SA_TAG2}
|
|
|
|
- SA_KILL=${SA_KILL}
|
|
|
|
- SA_SPAM_SUBJECT=${SA_SPAM_SUBJECT}
|
|
|
|
- ENABLE_FETCHMAIL=${ENABLE_FETCHMAIL}
|
|
|
|
- FETCHMAIL_POLL=${FETCHMAIL_POLL}
|
|
|
|
- ENABLE_LDAP=${ENABLE_LDAP}
|
|
|
|
- LDAP_START_TLS=${LDAP_START_TLS}
|
|
|
|
- LDAP_SERVER_HOST=${LDAP_SERVER_HOST}
|
|
|
|
- LDAP_SEARCH_BASE=${LDAP_SEARCH_BASE}
|
|
|
|
- LDAP_BIND_DN=${LDAP_BIND_DN}
|
|
|
|
- LDAP_BIND_PW=${LDAP_BIND_PW}
|
|
|
|
- LDAP_QUERY_FILTER_USER=${LDAP_QUERY_FILTER_USER}
|
|
|
|
- LDAP_QUERY_FILTER_GROUP=${LDAP_QUERY_FILTER_GROUP}
|
|
|
|
- LDAP_QUERY_FILTER_ALIAS=${LDAP_QUERY_FILTER_ALIAS}
|
|
|
|
- DOVECOT_TLS=${DOVECOT_TLS}
|
|
|
|
- DOVECOT_USER_FILTER=${DOVECOT_USER_FILTER}
|
|
|
|
- DOVECOT_PASS_FILTER=${DOVECOT_PASS_FILTER}
|
|
|
|
- ENABLE_POSTGREY=${ENABLE_POSTGREY}
|
|
|
|
- POSTGREY_DELAY=${POSTGREY_DELAY}
|
|
|
|
- POSTGREY_MAX_AGE=${POSTGREY_MAX_AGE}
|
2018-11-01 18:32:36 +00:00
|
|
|
- POSTGREY_AUTO_WHITELIST_CLIENTS=${POSTGREY_AUTO_WHITELIST_CLIENTS}
|
2018-02-07 18:37:26 +00:00
|
|
|
- POSTGREY_TEXT=${POSTGREY_TEXT}
|
|
|
|
- ENABLE_SASLAUTHD=${ENABLE_SASLAUTHD}
|
|
|
|
- SASLAUTHD_MECHANISMS=${SASLAUTHD_MECHANISMS}
|
|
|
|
- SASLAUTHD_MECH_OPTIONS=${SASLAUTHD_MECH_OPTIONS}
|
|
|
|
- SASLAUTHD_LDAP_SERVER=${SASLAUTHD_LDAP_SERVER}
|
|
|
|
- SASLAUTHD_LDAP_SSL=${SASLAUTHD_LDAP_SSL}
|
|
|
|
- SASLAUTHD_LDAP_BIND_DN=${SASLAUTHD_LDAP_BIND_DN}
|
|
|
|
- SASLAUTHD_LDAP_PASSWORD=${SASLAUTHD_LDAP_PASSWORD}
|
|
|
|
- SASLAUTHD_LDAP_SEARCH_BASE=${SASLAUTHD_LDAP_SEARCH_BASE}
|
|
|
|
- SASLAUTHD_LDAP_FILTER=${SASLAUTHD_LDAP_FILTER}
|
2018-06-02 19:16:16 +00:00
|
|
|
- SASLAUTHD_LDAP_START_TLS=${SASLAUTHD_LDAP_START_TLS}
|
|
|
|
- SASLAUTHD_LDAP_TLS_CHECK_PEER=${SASLAUTHD_LDAP_TLS_CHECK_PEER}
|
2018-02-07 18:37:26 +00:00
|
|
|
- SASL_PASSWD=${SASL_PASSWD}
|
2016-09-29 20:52:05 +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-09-29 20:52:05 +00:00
|
|
|
elk:
|
|
|
|
build: elk
|
|
|
|
ports:
|
|
|
|
- "5601:5601"
|
|
|
|
- "9200:9200"
|
|
|
|
- "5044:5044"
|
|
|
|
- "5000:5000"
|
2017-03-16 15:45:47 +00:00
|
|
|
restart: always
|
2016-09-29 20:52:05 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
maildata:
|
|
|
|
driver: local
|