Simon Bruder
3e566f06df
All checks were successful
continuous-integration/drone/push Build is passing
55 lines
1.3 KiB
Plaintext
55 lines
1.3 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:
|
|
- postgrey
|
|
- dovecot
|
|
|
|
postgrey:
|
|
build: postgrey
|
|
image: r.sbruder.de/postgrey
|
|
restart: always
|
|
volumes:
|
|
- ./spool/postgrey:/var/spool/postfix/postgrey
|
|
|
|
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: {}
|