-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
32 lines (31 loc) · 1005 Bytes
/
docker-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
services:
ldap-server:
image: osixia/openldap:latest
ports:
- "389:389"
- "636:636"
volumes:
- ./rootCA.pem:/container/service/slapd/assets/certs/rootCA.crt
- ./localhost.pem:/container/service/slapd/assets/certs/localhost.crt
- ./localhost-key.pem:/container/service/slapd/assets/certs/localhost-key.key
- ldap_database_data:/var/lib/ldap
- ldap_config_data:/etc/ldap/slapd.d
environment:
LDAP_TLS_CRT_FILENAME: "localhost.crt"
LDAP_TLS_KEY_FILENAME: "localhost-key.key"
LDAP_TLS_CA_CRT_FILENAME: "rootCA.crt"
# By default, the server verify the client certificate,
# But we do not use client certificate, so we set to never.
LDAP_TLS_VERIFY_CLIENT: "never"
ldap-admin:
image: osixia/phpldapadmin:latest
ports:
- "58080:80"
environment:
PHPLDAPADMIN_LDAP_HOSTS: "ldap-server"
PHPLDAPADMIN_HTTPS: "false"
volumes:
ldap_database_data:
driver: local
ldap_config_data:
driver: local