Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 1 | parameters: |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 2 | docker: |
| 3 | client: |
| 4 | stack: |
| 5 | ldap: |
| 6 | service: |
| 7 | server: |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame] | 8 | networks: |
| 9 | - ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 10 | deploy: |
| 11 | restart_policy: |
| 12 | condition: any |
| 13 | image: ${_param:docker_image_openldap} |
| 14 | hostname: ldap01 |
| 15 | domainname: ${_param:openldap_domain} |
| 16 | ports: |
| 17 | - 1389:389 |
| 18 | - 1636:636 |
| 19 | volumes: |
| 20 | - /srv/volumes/openldap/database:/var/lib/ldap |
| 21 | - /srv/volumes/openldap/config:/etc/ldap/slapd.d |
| 22 | environment: |
| 23 | HOSTNAME: ldap01.${_param:openldap_domain} |
| 24 | LDAP_ORGANISATION: "${_param:openldap_organisation}" |
| 25 | LDAP_DOMAIN: "${_param:openldap_domain}" |
| 26 | LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password} |
| 27 | LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password} |
| 28 | LDAP_TLS: "false" |
| 29 | admin: |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame] | 30 | networks: |
| 31 | - ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 32 | deploy: |
| 33 | restart_policy: |
| 34 | condition: any |
| 35 | image: ${_param:docker_image_phpldapadmin} |
| 36 | depends_on: |
| 37 | - server |
| 38 | hostname: ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 39 | environment: |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame] | 40 | PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'server': [{'server': [{'tls': False}]},{'login': [{'bind_id': 'cn=admin,${_param:openldap_dn}'},{'bind_pass': '${_param:openldap_admin_password}'}]}]}]" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 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 |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame] | 47 | network: |
| 48 | ldap: |
| 49 | driver: overlay |
| 50 | driver_opts: |
| 51 | encrypted: 1 |