关于gitlab:mac配置Gitlab

一、应用docker装置Gitlab
1、装置docker
https://download.docker.com/m…
2、装置后设置加速器器:


{
“builder”: {

"gc": {
  "defaultKeepStorage": "20GB",
  "enabled": true
}

},
“experimental”: false,
“features”: {

"buildkit": true

},
“registry-mirrors”: [

"https://pt3p0cvc.mirror.aliyuncs.com"

]
}

3、拉取gitlab(测试sso指定对应版本)
docker pull gitlab/gitlab-ee:10.8.4-ee.0
4、在docker内启动gitlab项⽬
sudo docker run –detach \

--hostname localhost \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
--volume /Users/yufu/gitlab/config:/etc/gitlab \
--volume /Users/yufu/gitlab/logs:/var/log/gitlab \
--volume /Users/yufu/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ee:10.8.4-ee.0

注:须要将容器目录映射到本机目录,”:”前为本机目录。”:”后为docker映射目录,零碎会主动创立也能够本人创立,并且将目录绑定到docker容器中,实现资源文件共享。

5、装置胜利后,域名输出:localhost,能够进行拜访。

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理