2024-03-23 01:57:50 -04:00
|
|
|
version: '3'
|
|
|
|
|
2024-03-22 18:43:42 -04:00
|
|
|
services:
|
2024-03-23 01:57:50 -04:00
|
|
|
roundcube:
|
|
|
|
image: roundcube/roundcubemail:latest
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./docker-data/roundcube/db/sqlite:/var/roundcube/db
|
|
|
|
- ./docker-data/roundcube/config:/var/roundcube/config
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:9002:80
|
|
|
|
environment:
|
|
|
|
- ROUNDCUBEMAIL_DB_TYPE=sqlite
|
|
|
|
- ROUNDCUBEMAIL_SKIN=elastic
|
2024-03-26 15:24:00 -04:00
|
|
|
- ROUNDCUBEMAIL_PLUGINS={{ roundcube_plugins }}
|
2024-03-23 01:57:50 -04:00
|
|
|
- ROUNDCUBEMAIL_DEFAULT_HOST={{ roundcube_default_host }}
|
|
|
|
- ROUNDCUBEMAIL_DEFAULT_PORT={{ roundcube_default_port }}
|
|
|
|
- ROUNDCUBEMAIL_SMTP_SERVER={{ roundcube_smtp_host }}
|
|
|
|
- ROUNDCUBEMAIL_SMTP_PORT={{ roundcube_smtp_port }}
|
2024-07-17 05:05:45 -04:00
|
|
|
networks:
|
|
|
|
- roundcube
|
2024-03-23 01:57:50 -04:00
|
|
|
|
2024-03-22 18:43:42 -04:00
|
|
|
mailserver:
|
|
|
|
image: ghcr.io/docker-mailserver/docker-mailserver:latest
|
|
|
|
hostname: {{ mail_domain }}
|
2024-03-23 01:57:50 -04:00
|
|
|
restart: always
|
2024-03-22 18:43:42 -04:00
|
|
|
ports:
|
2024-03-23 01:57:50 -04:00
|
|
|
- 0.0.0.0:25:25
|
|
|
|
- 0.0.0.0:465:465
|
|
|
|
- 0.0.0.0:587:587
|
|
|
|
- 0.0.0.0:993:993
|
2024-03-26 15:24:00 -04:00
|
|
|
- 0.0.0.0:4190:4190
|
2024-03-22 18:43:42 -04:00
|
|
|
volumes:
|
|
|
|
- ./docker-data/dms/mail-data/:/var/mail/
|
|
|
|
- ./docker-data/dms/mail-state/:/var/mail-state/
|
|
|
|
- ./docker-data/dms/mail-logs/:/var/log/mail/
|
|
|
|
- ./docker-data/dms/config/:/tmp/docker-mailserver/
|
|
|
|
- ./docker-data/dms/config/dovecot-ldap.conf:/etc/dovecot/dovecot-ldap.conf.ext
|
|
|
|
- /etc/letsencrypt:/etc/letsencrypt:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
- SSL_TYPE=letsencrypt
|
2024-03-23 01:57:50 -04:00
|
|
|
- ENABLE_CLAMAV=0
|
2024-03-22 18:43:42 -04:00
|
|
|
- ENABLE_AMAVIS=1
|
|
|
|
- ENABLE_FAIL2BAN=1
|
|
|
|
- ENABLE_SASLAUTHD=1
|
2024-03-26 15:24:00 -04:00
|
|
|
- ENABLE_MANAGESIEVE=1
|
2024-03-22 18:43:42 -04:00
|
|
|
- ENABLE_POSTGREY=0
|
|
|
|
|
|
|
|
- SPOOF_PROTECTION=1
|
|
|
|
- ACCOUNT_PROVISIONER=LDAP
|
|
|
|
- LDAP_SERVER_HOST={{ ldap_server_host }}
|
|
|
|
- LDAP_SEARCH_BASE={{ ldap_search_base }}
|
|
|
|
- LDAP_BIND_DN={{ ldap_bind_dn }}
|
|
|
|
- LDAP_BIND_PW={{ email_ldap_api_token }}
|
|
|
|
|
|
|
|
- LDAP_QUERY_FILTER_USER={{ ldap_query_filter_user }}
|
|
|
|
- LDAP_QUERY_FILTER_GROUP={{ ldap_query_filter_group }}
|
|
|
|
- LDAP_QUERY_FILTER_ALIAS={{ ldap_query_filter_alias }}
|
|
|
|
- LDAP_QUERY_FILTER_DOMAIN={{ ldap_query_filter_domain }}
|
|
|
|
- LDAP_QUERY_FILTER_SENDERS={{ ldap_query_filter_senders }}
|
|
|
|
|
|
|
|
- POSTMASTER_ADDRESS={{ postmaster_email }}
|
|
|
|
|
|
|
|
- ENABLE_SASLAUTHD=1
|
|
|
|
- SASLAUTHD_MECHANISMS=ldap
|
|
|
|
- SASLAUTHD_LDAP_FILTER={{ sasl_ldap_filter }}
|
2024-03-23 01:57:50 -04:00
|
|
|
|
|
|
|
- ENABLE_OAUTH2=1
|
|
|
|
- OAUTH2_INTROSPECTION_URL={{ roundcube_oauth2_user_uri }}
|
2024-03-25 13:43:12 -04:00
|
|
|
extra_hosts:
|
|
|
|
- {{ ldap_server }}:{{ ldap_intranet}}
|
2024-07-17 05:05:45 -04:00
|
|
|
networks:
|
|
|
|
- mailserver
|
|
|
|
networks:
|
|
|
|
mailserver:
|
|
|
|
roundcube:
|