使用Docker部署Gitlab

1.下载

sudo docker pull gitlab/gitlab-ce

2.run

GITLAB_HOME=/home/smile/docker/gitlab
sudo docker run -d \
    --hostname gitlab \
    --publish 8443:443 --publish 3380:80 --publish 2222: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

3. 这个项目启动时间较长,以后再配置,

   访问 http://localhost:3380/

猜你喜欢

转载自www.cnblogs.com/alittlesmile/p/10890712.html