blob: b785711bacacb3680aecdd1a640117efe0f65767 [file] [log] [blame]
Ivan Berezovskiy555d42f2019-01-09 14:01:21 +04001classes:
2- system.docker.client.images.ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +02003parameters:
Filip Pytloun7d6144a2017-04-13 13:36:45 +02004 docker:
5 client:
6 stack:
7 ldap:
8 service:
9 server:
Filip Pytloun78bf90c2017-05-02 12:14:06 +020010 networks:
11 - ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +020012 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 Pytloun78bf90c2017-05-02 12:14:06 +020032 networks:
33 - ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +020034 deploy:
35 restart_policy:
36 condition: any
37 image: ${_param:docker_image_phpldapadmin}
38 depends_on:
39 - server
40 hostname: ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +020041 environment:
Ivan Berezovskiy64a63be2019-02-28 19:59:47 +040042 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 Pytloun7d6144a2017-04-13 13:36:45 +020044 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 Pytloun78bf90c2017-05-02 12:14:06 +020050 network:
51 ldap:
52 driver: overlay
53 driver_opts:
54 encrypted: 1