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: |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame^] | 11 | networks: |
| 12 | - ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 13 | deploy: |
| 14 | restart_policy: |
| 15 | condition: any |
| 16 | image: ${_param:docker_image_openldap} |
| 17 | hostname: ldap01 |
| 18 | domainname: ${_param:openldap_domain} |
| 19 | ports: |
| 20 | - 1389:389 |
| 21 | - 1636:636 |
| 22 | volumes: |
| 23 | - /srv/volumes/openldap/database:/var/lib/ldap |
| 24 | - /srv/volumes/openldap/config:/etc/ldap/slapd.d |
| 25 | environment: |
| 26 | HOSTNAME: ldap01.${_param:openldap_domain} |
| 27 | LDAP_ORGANISATION: "${_param:openldap_organisation}" |
| 28 | LDAP_DOMAIN: "${_param:openldap_domain}" |
| 29 | LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password} |
| 30 | LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password} |
| 31 | LDAP_TLS: "false" |
| 32 | admin: |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame^] | 33 | networks: |
| 34 | - ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 35 | deploy: |
| 36 | restart_policy: |
| 37 | condition: any |
| 38 | image: ${_param:docker_image_phpldapadmin} |
| 39 | depends_on: |
| 40 | - server |
| 41 | hostname: ldap |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 42 | environment: |
Filip Pytloun | 78bf90c | 2017-05-02 12:14:06 +0200 | [diff] [blame^] | 43 | 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] | 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 |