Skip to content

Commit 30d2d04

Browse files
committedDec 31, 2022
Fixup the README
1 parent a55ccaf commit 30d2d04

File tree

1 file changed

+49
-26
lines changed

1 file changed

+49
-26
lines changed
 

‎README.md

+49-26
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,54 @@ version: "2.3"
1313

1414
services:
1515
phpldapadmin:
16-
image: ghcr.io/sudo-bot/docker-phpldapadmin/docker-phpldapadmin:latest
17-
environment:
18-
BASE_URL: http://phpldapadmin
19-
DB_HOST: mariadb.local
20-
DB_NAME: phpldapadmin
21-
DB_USERNAME: phpldapadmin
22-
DB_PASSWORD: phpldapadmin
23-
# DEBUG_MODE: true
24-
# French is the default lang
25-
DEFAULT_LANG: french
26-
healthcheck:
27-
test:
28-
[
29-
"CMD",
30-
"curl",
31-
"-s",
32-
"--fail",
33-
"http://127.0.0.1/.nginx/status",
16+
image: botsudo/docker-phpldapadmin
17+
environment:
18+
PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'ldap-server': [{'server': [{'tls': False}]},{'login': [{'bind_id': 'cn=admin,dc=example,dc=org'}]}]}]"
19+
depends_on:
20+
ldap-server:
21+
condition: service_healthy
22+
healthcheck:
23+
test:
24+
[
25+
"CMD",
26+
"curl",
27+
"-s",
28+
"--fail",
29+
"http://127.0.0.1/.nginx/status",
3430
]
35-
start_period: 5s
36-
interval: 15s
37-
timeout: 1s
38-
networks:
39-
# The network where mariadb.local resolves to an IP
40-
mynetwork:
41-
ports:
42-
- "127.0.0.36:80:80"
31+
start_period: 5s
32+
interval: 15s
33+
timeout: 1s
34+
35+
ldap-server:
36+
image: botsudo/docker-openldap
37+
command: ldap
38+
restart: on-failure:5
39+
mem_limit: 256M
40+
mem_reservation: 100M
41+
healthcheck:
42+
test: 'ldapwhoami -D "cn=$${DOCKER_LDAP_HEALTHCHECK_USERNAME}" -w "$${DOCKER_LDAP_HEALTHCHECK_PASSWORD}"'
43+
start_period: 5s
44+
interval: 10s
45+
timeout: 5s
46+
retries: 3
47+
environment:
48+
# 256 to enable debug
49+
# See: https://www.openldap.org/doc/admin24/slapdconf2.html
50+
LDAP_LOG_LEVEL: 0
51+
LDAP_OPENLDAP_GID: 0
52+
LDAP_OPENLDAP_UID: 0
53+
LDAP_BASE_DN: "dc=example,dc=org"
54+
LDAP_AUTH_BASE_DN: "ou=people,dc=example,dc=org"
55+
LDAP_ADMIN_PASSWORD: "ldapadminpass"
56+
LDAP_CONFIG_PASSWORD: "ldapconfigpass"
57+
LDAP_MONITOR_PASSWORD: "{SSHA}1h+K1VIdptHytwoqDd+z+ozORIKmGvG3" # monitor
58+
# Only used by healthcheck command defined above
59+
DOCKER_LDAP_HEALTHCHECK_USERNAME: monitor
60+
DOCKER_LDAP_HEALTHCHECK_PASSWORD: monitor
61+
# never | allow | try | demand
62+
LDAP_TLS_VERIFY_CLIENT: "never"
63+
# Add ldaps:/// to SSL listen
64+
LDAP_LISTEN_URLS: "ldap:/// ldapi:///"
65+
4366
```

0 commit comments

Comments
 (0)
Please sign in to comment.