Skip to content

Commit 9277195

Browse files
committed
Updated README.md to add volumes usage
1 parent 832bee7 commit 9277195

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,17 @@ docker run -d --name openldap -p 389:389 \
2121
-e LDAP_PASSWORD='ADpassword' \
2222
openldap
2323
```
24+
25+
## Using volumes
26+
```
27+
docker run -d --name openldap -p 389:389 \
28+
-e LDAP_SERVERS='ldap://ad.example.com:389/' \
29+
-e LDAP_SEARCH_BASE='CN=DomainUsers,DC=example,DC=com' \
30+
-e LDAP_TIMEOUT=10 \
31+
-e LDAP_FILTER='(sAMAccountName=%U)' \
32+
-e LDAP_BIND_DN='CN=Administrator,CN=Users,DC=example,DC=com' \
33+
-e LDAP_PASSWORD='ADpassword' \
34+
-v openldap-conf:/usr/local/etc/openldap \
35+
-v openldap-data:/usr/local/var/openldap-data \
36+
openldap
37+
```

0 commit comments

Comments
 (0)