-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (47 loc) · 1.22 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.7'
services:
openldap1:
build: ./src/master
hostname: ldap1
secrets:
- ldap-admin-password
environment:
- LDAP_TLS=false
- LDAP_ORGANISATION=EXAMPLE
- LDAP_DOMAIN=example.org
- LDAP_READONLY_USER=true
- LDAP_ADMIN_PASSWORD_FILE=/run/secrets/ldap-admin-password
- LDAP_REPLICATION=true
volumes:
- '<TODO>/ldap1-data:/var/lib/ldap'
- '<TODO>/ldap1-config:/etc/ldap/slapd.d'
openldap2:
build: ./src/slave
hostname: ldap2
depends_on:
- openldap1
secrets:
- ldap-admin-password
environment:
- LDAP_TLS=false
- LDAP_ORGANISATION=EXAMPLE
- LDAP_DOMAIN=example.org
- LDAP_READONLY_USER=true
- LDAP_ADMIN_PASSWORD_FILE=/run/secrets/ldap-admin-password
- LDAP_REPLICATION=true
- LDAP_RID=001
- LDAP_REPLICATION_MASTER="ldap://openldap1"
volumes:
- '<TODO>/ldap2-data:/var/lib/ldap'
- '<TODO>/ldap2-config:/etc/ldap/slapd.d'
phpldapadmin:
image: osixia/phpldapadmin:latest
depends_on:
- openldap1
ports:
- '8443:443'
environment:
- PHPLDAPADMIN_LDAP_HOSTS=openldap1
secrets:
ldap-admin-password:
file: "./ldap_admin_password.txt"