In Basic configuration settings of Configure LDAP section, specification of docker compose .yml file not work. (‘base’ two time repeat wrong way)
after refactored file like below but not work service with LDAP users
version: "3.6"
volumes:
GITLAB_HOME_CONFIG:
GITLAB_HOME_LOGS:
GITLAB_HOME_DATA:
services:
gitlab:
image: 'gitlab/gitlab-ce:16.3.2-ce.0'
restart: always
hostname: '192.168.12.251'
ports:
- '80:80'
- '443:443'
- '23:22'
volumes:
- GITLAB_HOME_CONFIG:/etc/gitlab
- GITLAB_HOME_LOGS:/var/log/gitlab
- GITLAB_HOME_DATA:/var/opt/gitlab
- /etc/localtime:/etc/localtime:ro
shm_size: '256m'
environment:
GITLAB_OMNIBUS_CONFIG: |
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = {
'main' => {
'label' => 'LDAP',
'host' => 'inet.net',
'port' => 389,
'uid' => 'sAMAccountName',
'base' => 'DC=inet,DC=net',
'bind_dn' => 'CN=iuser,CN=Users,DC=inet,DC=net',
'password' => 'iuser$8966',
'encryption' => 'plain',
'active_directory' => true,
'allow_username_or_email_login' => false,
'block_auto_created_users' => false
}
}
I install gitlab stand alone (without docker compose) with same configuration every thing is ok.
GITLAB_OMNIBUS_CONFIG not configure in docker container properly.
please help me