Skip to content

Commit

Permalink
Fixup the README
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Dec 31, 2022
1 parent a55ccaf commit 30d2d04
Showing 1 changed file with 49 additions and 26 deletions.
75 changes: 49 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,54 @@ version: "2.3"

services:
phpldapadmin:
image: ghcr.io/sudo-bot/docker-phpldapadmin/docker-phpldapadmin:latest
environment:
BASE_URL: http://phpldapadmin
DB_HOST: mariadb.local
DB_NAME: phpldapadmin
DB_USERNAME: phpldapadmin
DB_PASSWORD: phpldapadmin
# DEBUG_MODE: true
# French is the default lang
DEFAULT_LANG: french
healthcheck:
test:
[
"CMD",
"curl",
"-s",
"--fail",
"http://127.0.0.1/.nginx/status",
image: botsudo/docker-phpldapadmin
environment:
PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'ldap-server': [{'server': [{'tls': False}]},{'login': [{'bind_id': 'cn=admin,dc=example,dc=org'}]}]}]"
depends_on:
ldap-server:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"curl",
"-s",
"--fail",
"http://127.0.0.1/.nginx/status",
]
start_period: 5s
interval: 15s
timeout: 1s
networks:
# The network where mariadb.local resolves to an IP
mynetwork:
ports:
- "127.0.0.36:80:80"
start_period: 5s
interval: 15s
timeout: 1s

ldap-server:
image: botsudo/docker-openldap
command: ldap
restart: on-failure:5
mem_limit: 256M
mem_reservation: 100M
healthcheck:
test: 'ldapwhoami -D "cn=$${DOCKER_LDAP_HEALTHCHECK_USERNAME}" -w "$${DOCKER_LDAP_HEALTHCHECK_PASSWORD}"'
start_period: 5s
interval: 10s
timeout: 5s
retries: 3
environment:
# 256 to enable debug
# See: https://www.openldap.org/doc/admin24/slapdconf2.html
LDAP_LOG_LEVEL: 0
LDAP_OPENLDAP_GID: 0
LDAP_OPENLDAP_UID: 0
LDAP_BASE_DN: "dc=example,dc=org"
LDAP_AUTH_BASE_DN: "ou=people,dc=example,dc=org"
LDAP_ADMIN_PASSWORD: "ldapadminpass"
LDAP_CONFIG_PASSWORD: "ldapconfigpass"
LDAP_MONITOR_PASSWORD: "{SSHA}1h+K1VIdptHytwoqDd+z+ozORIKmGvG3" # monitor
# Only used by healthcheck command defined above
DOCKER_LDAP_HEALTHCHECK_USERNAME: monitor
DOCKER_LDAP_HEALTHCHECK_PASSWORD: monitor
# never | allow | try | demand
LDAP_TLS_VERIFY_CLIENT: "never"
# Add ldaps:/// to SSL listen
LDAP_LISTEN_URLS: "ldap:/// ldapi:///"

```

0 comments on commit 30d2d04

Please sign in to comment.