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

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-03-31 00:16:15 +01:00
version: "3"
services:
postfix:
build: postfix
2019-03-31 00:28:06 +01:00
image: r.sbruder.de/postfix
2019-03-31 00:16:15 +01:00
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:
2019-08-01 14:04:30 +02:00
- ./hotplug.d:/etc/postfix/hotplug.d
2019-03-31 00:16:15 +01:00
- ../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
2019-03-31 00:28:06 +01:00
image: r.sbruder.de/dovecot
2019-03-31 00:16:15 +01:00
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: {}