legacy-server-config/mail/docker-compose.yml

33 lines
905 B
YAML
Raw Normal View History

2021-04-02 11:09:32 +00:00
version: '2.4'
services:
mailserver:
2021-07-30 14:06:39 +00:00
image: mailserver/docker-mailserver:10.0.0
2021-04-02 11:09:32 +00:00
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
2021-07-30 14:06:39 +00:00
- POSTFIX_MESSAGE_SIZE_LIMIT=102400000
2021-04-02 11:09:32 +00:00
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" ]