In docker-compose.yml cannot add to environment var GITLAB_OMNIBUS_CONFIG ldap multiline yaml configuration, because:
# Add any other gitlab.rb configuration here, each on its own line
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main:
label: 'LDAP'
host: 'ldap.<>.local'
port: 389
uid: 'uid'
bind_dn: 'uid=<>,ou=People,dc=,dc='
password: '<>'
encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
base: '<>'
attributes:
username: ['uid', 'userid', 'sAMAccountName']
email: ['mail', 'email', 'userPrincipalName']
name: 'cn'
first_name: 'givenName'
last_name: 'sn'
EOS
Are there solution?