-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (31 loc) · 1000 Bytes
/
docker-compose.yml
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
version: "3"
# LDAPTLS_REQCERT=never ldapsearch -LLL -H "ldaps://localhost:6360" -D "uid=admin,ou=people,dc=example,dc=org" -w 'xxxxxxxxxxxxxxxx' -b "dc=example,dc=org"
# docker compose exec lldap /bootstrap/bootstrap.sh
services:
lldap:
image: lldap/lldap:stable
ports:
# For LDAP
- "127.0.0.1:3890:3890"
# For LDAPS (if LLDAP_LDAPS_OPTIONS__ENABLED=true)
- "0.0.0.0:6360:6360"
# For the web front-end
- "127.0.0.1:17170:17170"
networks:
- default
volumes:
- ./certs/cert.pem:/certs/cert.pem:ro
- ./certs/key.pem:/certs/key.pem:ro
- ./data:/data:rw
- ./bootstrap:/bootstrap:ro
env_file:
- .env
environment:
- LLDAP_LDAPS_OPTIONS__ENABLED=true
- LLDAP_LDAPS_OPTIONS__CERT_FILE=/certs/cert.pem
- LLDAP_LDAPS_OPTIONS__KEY_FILE=/certs/key.pem
- USER_CONFIGS_DIR=/bootstrap/user-configs
- GROUP_CONFIGS_DIR=/bootstrap/group-configs
networks:
default:
external: false