Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Last active December 12, 2023 07:26
Show Gist options
  • Save dasgoll/04b59a077a1834b61cf179aeab513ae1 to your computer and use it in GitHub Desktop.
Save dasgoll/04b59a077a1834b61cf179aeab513ae1 to your computer and use it in GitHub Desktop.
install gitlab as a docker container
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