32 lines
859 B
YAML
32 lines
859 B
YAML
version: '2.4'
|
|
services:
|
|
mailserver:
|
|
image: mailserver/docker-mailserver:9.1.0
|
|
hostname: mail
|
|
domainname: kagent.at
|
|
container_name: mailserver
|
|
#env_file: mailserver.env
|
|
environment:
|
|
- ENABLE_SPAMASSASSIN=1
|
|
- SPAMASSASSIN_SPAM_TO_INBOX=1
|
|
- ENABLE_CLAMAV=1
|
|
- ENABLE_FAIL2BAN=1
|
|
- ENABLE_POSTGREY=0
|
|
- ENABLE_SASLAUTHD=0
|
|
- ONE_DIR=1
|
|
- DMS_DEBUG=0
|
|
- SSL_TYPE=letsencrypt
|
|
ports:
|
|
- "25:25"
|
|
- "143:143"
|
|
- "587:587"
|
|
- "993:993"
|
|
volumes:
|
|
- /var/mail/data:/var/mail
|
|
- /var/mail/state:/var/mail-state
|
|
- /var/log/mail:/var/log/mail
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./config/:/tmp/docker-mailserver/${SELINUX_LABEL}
|
|
- /etc/letsencrypt:/etc/letsencrypt
|
|
restart: unless-stopped
|
|
cap_add: [ "NET_ADMIN", "SYS_PTRACE" ] |