parameters: | |
_param: | |
docker_image_openldap: osixia/openldap:1.1.8 | |
docker_image_phpldapadmin: tcpcloud/phpldapadmin:0.6.12 | |
docker: | |
client: | |
stack: | |
ldap: | |
service: | |
server: | |
deploy: | |
restart_policy: | |
condition: any | |
image: ${_param:docker_image_openldap} | |
hostname: ldap01 | |
domainname: ${_param:openldap_domain} | |
ports: | |
- 1389:389 | |
- 1636:636 | |
volumes: | |
- /srv/volumes/openldap/database:/var/lib/ldap | |
- /srv/volumes/openldap/config:/etc/ldap/slapd.d | |
environment: | |
HOSTNAME: ldap01.${_param:openldap_domain} | |
LDAP_ORGANISATION: "${_param:openldap_organisation}" | |
LDAP_DOMAIN: "${_param:openldap_domain}" | |
LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password} | |
LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password} | |
LDAP_TLS: "false" | |
admin: | |
deploy: | |
restart_policy: | |
condition: any | |
image: ${_param:docker_image_phpldapadmin} | |
depends_on: | |
- server | |
hostname: ldap | |
domainname: ${_param:openldap_domain} | |
environment: | |
PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'ldap.${_param:openldap_domain}': [{'server': [{'tls': False}]},{'login': [{'bind_id': 'cn=admin,${_param:openldap_dn}'},{'bind_pass': '${_param:openldap_admin_password}'}]}]}]" | |
PHPLDAPADMIN_HTTPS: "false" | |
PHPLDAPADMIN_TRUST_PROXY_SSL: "true" | |
PHPLDAPADMIN_SERVER_ADMIN: ${_param:admin_email} | |
PHPLDAPADMIN_THEME: mirantis | |
ports: | |
- 18089:80 |