Loading
0

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

参考:

最后编辑于:2022/4/23作者: 编程小战

我不入地狱,谁入地狱?

评论已关闭