docker: please add info how to change UIDs
Because of groupadd
s and useradd
s in docker/assets/setup, the default guide for setting user names and UIDs from omnibus docs, as quoted below, does not work:
omnibus-gitlab creates users for GitLab, PostgreSQL, Redis and NGINX. You can specify the numeric identifiers for these users in /etc/gitlab/gitlab.rb as follows. [...]
What I had to do was to run the following command in docker-compose.yml:
gitlab:
image: 'gitlab/gitlab-ce:10.8.2-ce.0'
command: |
bash -c '
groupmod -g $$GID1 git &&
usermod -u $$UID1 git &&
groupmod -g $$GID2 gitlab-www &&
usermod -u $$UID2 gitlab-www &&
groupmod -g $$GID3 gitlab-redis &&
usermod -u $$UID3 gitlab-redis &&
groupmod -g $$GID4 gitlab-psql &&
usermod -u $$UID4 gitlab-psql &&
userdel mattermost &&
userdel registry &&
userdel gitlab-prometheus &&
userdel gitlab-consul &&
/assets/wrapper'
Please add this info on https://docs.gitlab.com/omnibus/docker/