Ivan Berezovskiy | 555d42f | 2019-01-09 14:01:21 +0400 | [diff] [blame] | 1 | classes: |
| 2 | - system.docker.client.images.ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 3 | parameters: |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 4 | docker: |
| 5 | client: |
| 6 | stack: |
| 7 | ldap: |
| 8 | service: |
| 9 | server: |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame] | 10 | networks: |
| 11 | - ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 12 | deploy: |
| 13 | restart_policy: |
| 14 | condition: any |
| 15 | image: ${_param:docker_image_openldap} |
| 16 | hostname: ldap01 |
| 17 | domainname: ${_param:openldap_domain} |
| 18 | ports: |
| 19 | - 1389:389 |
| 20 | - 1636:636 |
| 21 | volumes: |
| 22 | - /srv/volumes/openldap/database:/var/lib/ldap |
| 23 | - /srv/volumes/openldap/config:/etc/ldap/slapd.d |
| 24 | environment: |
| 25 | HOSTNAME: ldap01.${_param:openldap_domain} |
| 26 | LDAP_ORGANISATION: "${_param:openldap_organisation}" |
| 27 | LDAP_DOMAIN: "${_param:openldap_domain}" |
| 28 | LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password} |
| 29 | LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password} |
| 30 | LDAP_TLS: "false" |
| 31 | admin: |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame] | 32 | networks: |
| 33 | - ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 34 | deploy: |
| 35 | restart_policy: |
| 36 | condition: any |
| 37 | image: ${_param:docker_image_phpldapadmin} |
| 38 | depends_on: |
| 39 | - server |
| 40 | hostname: ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 41 | environment: |
Ivan Berezovskiy | 64a63be | 2019-02-28 19:59:47 +0400 | [diff] [blame] | 42 | PHPLDAPADMIN_LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password} |
| 43 | PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'server': [{'server': [{'tls': False}]},{'login': [{'bind_id': 'cn=admin,${_param:openldap_dn}'},{'bind_pass': '$PHPLDAPADMIN_LDAP_ADMIN_PASSWORD'}]}]}]" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 44 | PHPLDAPADMIN_HTTPS: "false" |
| 45 | PHPLDAPADMIN_TRUST_PROXY_SSL: "true" |
| 46 | PHPLDAPADMIN_SERVER_ADMIN: ${_param:admin_email} |
| 47 | PHPLDAPADMIN_THEME: mirantis |
| 48 | ports: |
| 49 | - 18089:80 |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame] | 50 | network: |
| 51 | ldap: |
| 52 | driver: overlay |
| 53 | driver_opts: |
| 54 | encrypted: 1 |