Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame^] | 1 | parameters: |
| 2 | _param: |
| 3 | docker_image_openldap: osixia/openldap:1.1.8 |
| 4 | docker_image_phpldapadmin: tcpcloud/phpldapadmin:0.6.12 |
| 5 | docker: |
| 6 | client: |
| 7 | stack: |
| 8 | ldap: |
| 9 | service: |
| 10 | server: |
| 11 | deploy: |
| 12 | restart_policy: |
| 13 | condition: any |
| 14 | image: ${_param:docker_image_openldap} |
| 15 | hostname: ldap01 |
| 16 | domainname: ${_param:openldap_domain} |
| 17 | ports: |
| 18 | - 1389:389 |
| 19 | - 1636:636 |
| 20 | volumes: |
| 21 | - /srv/volumes/openldap/database:/var/lib/ldap |
| 22 | - /srv/volumes/openldap/config:/etc/ldap/slapd.d |
| 23 | environment: |
| 24 | HOSTNAME: ldap01.${_param:openldap_domain} |
| 25 | LDAP_ORGANISATION: "${_param:openldap_organisation}" |
| 26 | LDAP_DOMAIN: "${_param:openldap_domain}" |
| 27 | LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password} |
| 28 | LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password} |
| 29 | LDAP_TLS: "false" |
| 30 | admin: |
| 31 | deploy: |
| 32 | restart_policy: |
| 33 | condition: any |
| 34 | image: ${_param:docker_image_phpldapadmin} |
| 35 | depends_on: |
| 36 | - server |
| 37 | hostname: ldap |
| 38 | domainname: ${_param:openldap_domain} |
| 39 | environment: |
| 40 | 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}'}]}]}]" |
| 41 | PHPLDAPADMIN_HTTPS: "false" |
| 42 | PHPLDAPADMIN_TRUST_PROXY_SSL: "true" |
| 43 | PHPLDAPADMIN_SERVER_ADMIN: ${_param:admin_email} |
| 44 | PHPLDAPADMIN_THEME: mirantis |
| 45 | ports: |
| 46 | - 18089:80 |