47 lines
1.2 KiB
Plaintext
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:
|
|
- ./aliases.d:/etc/postfix/aliases.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: {}
|