sameersbn / docker-gitlab

Dockerized GitLab
http://www.damagehead.com/docker-gitlab/
MIT License
7.9k stars 2.14k forks source link

Initialize account password #2727

Open WuChenDi opened 1 year ago

WuChenDi commented 1 year ago

hey, bro, how are you doing, sorry to bother you. I'm using the latest docker-compose.yml and found the setting

    ...
    environment:
    -  ...
    - GITLAB_ROOT_PASSWORD=123456789
    - GITLAB_ROOT_EMAIL=wuchendi96@gmail.com
    ...

is not working, but in image: sameersbn/gitlab:14.9.1 is normal, now using image: sameersbn/gitlab:15.9.2, if so, can you tell me how should If so, can you tell me how to modify it? image

veecam commented 1 year ago

这个版本的gitlab不允许用弱密码,用户创建失败了,注册一个新的,然后通过rails控制台设置state和admin

WuChenDi commented 1 year ago

这个版本的gitlab不允许用弱密码,用户创建失败了,注册一个新的,然后通过rails控制台设置state和admin

这样子,好像我使用其他强密码也是失效的,如果用户创建失效,请问yml配置目前是无用的了吗

wangliang01 commented 3 months ago

我也遇到相同的问题了,请问有解决方案吗,难道只能通过gitlab-rails 去控制台设置密码了吗?

kkimurak commented 3 months ago

GITLAB_ROOT_PASSWORD and GITLAB_ROOT_EMAIL are refered only first run (I mean, when the database is empty.
You can change password from rails console. Please note that gitlab-rails command does not available for sameersbn/gitlab. Run bundle exec rails console as user git. Or, you can use rake task instead: bundle exec rake "gitlab:password:reset".

See "Self-compiled (source)" tab on documentation: https://docs.gitlab.com/ee/security/reset_user_password.html?tab=Self-compiled+%28source%29