Last active
December 12, 2023 07:26
-
-
Save dasgoll/04b59a077a1834b61cf179aeab513ae1 to your computer and use it in GitHub Desktop.
install gitlab as a docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GITLAB_HOME=~/gitlab | |
mkdir $GITLAB_HOME | |
docker run --detach \ | |
--hostname gitlab.local.gd \ | |
--publish 8080:80 \ | |
--name gitlab \ | |
--restart always \ | |
--volume $GITLAB_HOME/config:/etc/gitlab \ | |
--volume $GITLAB_HOME/logs:/var/log/gitlab \ | |
--volume $GITLAB_HOME/data:/var/opt/gitlab \ | |
--shm-size 256m \ | |
gitlab/gitlab-ee:latest | |
docker exec -it gitlab cat /etc/gitlab/initial_root_password | |
visit http://gitlab.local.gd:8080 | |
root | |
1qdt6XfDUQjBvFS6Tj9YZx1FdW34FIHc3pTBtpZHsE= | |
## to reset password, get into the container | |
gitlab-rake "gitlab:password:reset[root]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment