使用Docker部署Gitlab

1.下载

sudo docker pull gitlab/gitlab-ce

 

2.run

sudo docker run -d \
    --hostname gitlab \
    --publish 8443:443 --publish 3380:80 --publish 2222:22 \
    --name gitlab \
    --restart always \
    --volume /home/smile/docker/gitlab/config:/etc/gitlab \
    --volume /home/smile/docker/gitlab/logs:/var/log/gitlab \
    --volume /home/smile/docker/gitlab/data:/var/opt/gitlab \
    gitlab/gitlab-ce

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

   访问 http://localhost:3380/

 

 

 

posted @ 2019-05-19 20:45  alittlesmile  阅读(295)  评论(0编辑  收藏  举报