quickly setup a GitLab Self-hosted service on your local machine
- Set the
GITLAB_HOME
variable in the .env file & load the .env variables into your session, or use any other method so this variable will be available for the init-env.sh script. I'm using teller for these kind of actions
eval "$(teller sh)"
- Run the init-env.sh script in order to create the necessary folders structure and give permissions. make sure GITLAB_HOME is set
./init-env.sh
- Edit the .env file with your prefferd configurations.
- Run init-gitlab-sh.sh in order to run the service.
./init-gitlab-sh.sh
- After the service is up, make sure that the UI is available by routing to http://localhost:{SERVER_PORT} in your browser.
- A root user is created automatically - root
- The generated password for this user can be retrive with the get-root-password.sh script (make sure that GITLAB_HOME is set in the session, like in step 1)
./get-root-password.sh
- Start using the service.
Enjoy!