Gitlab安装docker部署与集群

gitlab官网:

https://about.gitlab.com/

gitlab安装包下载:

https://packages.gitlab.com/gitlab

docker镜像:

https://hub.docker.com/r/gitlab/gitlab-ce

中文安装指南:

https://about.gitlab.cn/install/

docker安装:

VOL_HOME=/home/docker;
mkdir -p $VOL_HOME/gitlab/config;
mkdir -p $VOL_HOME/gitlab/data;
mkdir -p $VOL_HOME/gitlab/logs;
docker run -d \
--name gitlab \
--restart always \
--hostname 192.168.19.250 \
-p 5443:443 \
-p 5880:80 \
-p 5222:22 \
-v $VOL_HOME/gitlab/config:/etc/gitlab \
-v $VOL_HOME/gitlab/logs:/var/log/gitlab \
-v $VOL_HOME/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest

容器启动成功后查看root用户的初始密码:

docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password

登录地址,请替换实际IP:

http://127.0.0.1:5880/

参考:

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享