sameersbn / sameersbn/docker-gitlab

Root user not created with default docker-compose.yml

Open
#904 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

I have followed the instructions in the quick start and, after downloading docker-compose.yml and setting the keys, I ran docker-compose up and waited a bit. Connecting to the Gitlab instance presented me with the login screen, but no credentials worked. Connecting to the PGSQL container I tried a SELECT COUNT(*) FROM USERS, which resulted in a count of 0 rows.

I solved the problem by running docker-compose down, setting GITLAB_ROOT_PASSWORD within docker-compose.yml, doing docker-compose up and then manually running the setup by connecting to the gitlab container with docker exec -it gitlab_gitlab_1 /bin/bash (where gitlab_gitlab_1 was the name of my container, got it with docker-compose ps) and running bin/rake gitlab:setup.

Is this expected behavior?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the downloaded default docker-compose.yml and reproduce the quick-start flow using docker-compose up, then check the GitLab container and PostgreSQL users table as described. Compare this with the manual bin/rake gitlab:setup step; done means determining whether the default setup should create a root user and documenting or correcting the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, shell
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.