Dev/git
[mac] docker 로 gitlab 설치
냐옴
2021. 5. 12. 23:07
GITLAB_HOME 설정
mkdir ~/gitlab
export GITLAB_HOME=$HOME/gitlab
Docker Engine 으로 설치
# Community Edition
sudo docker run --detach \
--hostname gitlab.example.com \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
--volume $GITLAB_HOME/config:/etc/gitlab \
--volume $GITLAB_HOME/logs:/var/log/gitlab \
--volume $GITLAB_HOME/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
# 볼륨 에러나면 볼륨 빼고 다시 실행
sudo docker run --detach \
--hostname gitlab.example.com \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
gitlab/gitlab-ce:latest
로그 확인
sudo docker logs -f gitlab
위 로그가 보이면 브라우저에서 접속되는지 확인
http://localhost
edit config
sudo docker exec -it gitlab /bin/bash
sudo docker exec -it gitlab editor /etc/gitlab/gitlab.rb
restart gitlab
sudo docker restart gitlab
reconfigure GitLab
gitlab-ctl reconfigure
docs.gitlab.com/omnibus/docker/
GitLab Docker images | GitLab
Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.
docs.gitlab.com