docker化gitlab
- 2015/8/2 继承基础镜像docker-ubuntu
- 2015/8/2 默认暴露22 80端口
-
获取代码并构建
git clone https://github.com/Dockerlover/docker-gitlab.git cd docker-gitlab
-
获取gitlab-ce安装包
gitlab-ce_7.13.2-ce.0 ubuntu:14.04
-
构建代码
docker build -t docker-gitlab .
-
运行容器[run.sh]
docker run -it -d --restart=always --name gitlab -v /var/data/gitlab:/var/opt/gitlab -v /var/log/gitlab:/var/log/gitlab -p 10080:80 -p 10022:22 docker-gitlab
-
访问gitlab
http://localhost:10080
-
用户名和密码
Username: root Password: 5iveL!fe