File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ KEEP_EXISTING_CONFIG: false
5656# Remove config after setup
5757LDAP_REMOVE_CONFIG_AFTER_SETUP : true
5858
59+ # Ulimit
60+ LDAP_NOFILE : 1024
61+
5962# ssl-helper environment variables prefix
6063LDAP_SSL_HELPER_PREFIX : ldap # ssl-helper first search config from LDAP_SSL_HELPER_* variables, before SSL_HELPER_* variables.
6164
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ log-helper level eq trace && set -x
77# Reduce maximum number of number of open file descriptors to 1024
88# otherwise slapd consumes two orders of magnitude more of RAM
99# see https://github.com/docker/docker/issues/8231
10- ulimit -n 1024
10+ ulimit -n $LDAP_NOFILE
1111
1212exec /usr/sbin/slapd -h " ldap://$HOSTNAME ldaps://$HOSTNAME ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ log-helper level eq trace && set -x
88# Reduce maximum number of number of open file descriptors to 1024
99# otherwise slapd consumes two orders of magnitude more of RAM
1010# see https://github.com/docker/docker/issues/8231
11- ulimit -n 1024
11+ ulimit -n $LDAP_NOFILE
1212
1313# create dir if they not already exists
1414[ -d /var/lib/ldap ] || mkdir -p /var/lib/ldap
You can’t perform that action at this time.
0 commit comments