-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
53 lines (51 loc) · 1.54 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3'
services:
openldap:
image: osixia/openldap:latest
container_name: openldap
hostname: openldap
ports:
- "389:389"
- "636:636"
# Uncomment these lines if you want to persist data.
volumes:
- ./data/certificates:/container/service/slapd/assets/certs
- ./data/slapd/database:/var/lib/ldap
- ./data/slapd/config:/etc/ldap/slapd.d
environment:
# If you want to persist data, set the UID/GID to the owner user/groups in your volume mounts
# - LDAP_OPENLDAP_UID=501
# - LDAP_OPENLDAP_GID=20
# - DISABLE_CHOWN=true
- LDAP_ORGANISATION=example
- LDAP_DOMAIN=example.org
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=admin
- LDAP_CONFIG_PASSWORD=config_pass
- "LDAP_BASE_DN=dc=example,dc=org"
- BITNAMI_DEBUG=true
- LDAP_REMOVE_CONFIG_AFTER_SETUP=false
- LDAP_ENABLE_TLS=true
- LDAP_LDAPS_PORT_NUMBER=636
- LDAP_TLS_CERT_FILE=/container/service/slapd/assets/certs/ldap.crt
- LDAP_TLS_KEY_FILE=/container/service/slapd/assets/certs/ldap.key
- LDAP_TLS_CA_FILE=/container/service/slapd/assets/certs/ca.crt
- LDAP_TLS_VERIFY_CLIENT=try
networks:
- openldap
phpldapadmin:
image: osixia/phpldapadmin:latest
container_name: phpldapadmin
hostname: phpldapadmin
ports:
- "8080:80"
environment:
- PHPLDAPADMIN_LDAP_HOSTS=openldap
- PHPLDAPADMIN_HTTPS=false
depends_on:
- openldap
networks:
- openldap
networks:
openldap:
driver: bridge