This repository has been archived on 2021-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
mail/docker-compose.yml.example
Simon Bruder fca6ae6360
All checks were successful
continuous-integration/drone/push Build is passing
Add option to block specific senders
2019-08-01 12:05:37 +00:00

47 lines
1.2 KiB
Plaintext

version: "3"
services:
postfix:
build: postfix
image: r.sbruder.de/postfix
restart: always
environment:
- MYHOSTNAME=mail.example.com
- MYDOMAIN=example.com
- MAIL_NAME=sbrudermail
- MESSAGE_SIZE_LIMIT=15360000
- DOMAINS=example.com example.net
- POSTMASTER=postmaster@example.com
- LDAP_SERVER=ldap.example.com
- LDAP_BASE=ou=users,dc=example,dc=com
- LDAP_USER=cn=readonly,dc=example,dc=com
- LDAP_PASSWORD=v3rys3cur3
volumes:
- ./hotplug.d:/etc/postfix/hotplug.d
- ../web/certs/mail.example.com/:/tls/:ro
- ./spool/postfix:/var/spool/postfix
- dhparams:/etc/postfix/dh-params
ports:
- "25:25"
- "587:587"
depends_on:
- dovecot
dovecot:
build: dovecot
image: r.sbruder.de/dovecot
restart: always
environment:
- LDAP_SERVER=ldap.example.com
- LDAP_BASE=ou=users,dc=example,dc=com
- LDAP_USER=cn=readonly,dc=example,dc=com
- LDAP_PASSWORD=v3rys3cur3
volumes:
- ./vmail/:/var/vmail/
- ../web/certs/mail.example.com/:/tls/:ro
- dhparams:/etc/dovecot/dh-params
ports:
- "143:143"
volumes:
dhparams: {}