version: '2.1' services: ldap-mailcow: image: mailcow/ldap network_mode: host container_name: mailcowcustomized_ldap depends_on: - nginx-mailcow volumes: - ./data/ldap:/db:rw - ./data/conf/dovecot:/conf/dovecot:rw - ./data/conf/sogo:/conf/sogo:rw environment: - LDAP-MAILCOW_LDAP_HOST=ldaps://orpheus.syscid.com - LDAP-MAILCOW_LDAP_BASE_DN=OU=syscid-users,DC=syscid,DC=com - LDAP-MAILCOW_LDAP_BIND_DN=$BINDDN - LDAP-MAILCOW_LDAP_BIND_DN_PASSWORD=$BINDSEC - LDAP-MAILCOW_LDAP_FILTER=(objectClass=inetOrgPerson) - LDAP-MAILCOW_LDAP_FIELDS_MAIL=mail - LDAP-MAILCOW_LDAP_FIELDS_NAME=cn - LDAP-MAILCOW_API_HOST=$MAILCOWHOST - LDAP-MAILCOW_API_KEY=$MAILCOWAPI - LDAP-MAILCOW_API_SSL_VERIFY=1 - LDAP-MAILCOW_SYNC_INTERVAL=300 - LDAP-MAILCOW_EMAIL_DOMAINS=syscid.com dovecot-mailcow: extra_hosts: - "orpheus.syscid.com:192.168.0.115" sogo-mailcow: extra_hosts: - "orpheus.syscid.com:192.168.0.115"