美文网首页
GitLab搭建

GitLab搭建

作者: cnwinds | 来源:发表于2020-03-07 17:20 被阅读0次

安装GitLab

使用docker-compose命令部署

web:
  image: 'gitlab/gitlab-ce:latest'
  restart: always
  hostname: 'gitlab.example.com'
  environment:
    GITLAB_OMNIBUS_CONFIG: |
      external_url 'https://gitlab.example.com'
      # Add any other gitlab.rb configuration here, each on its own line
  ports:
    - '80:80'
    - '443:443'
    - '22:22'
  volumes:
    - '/srv/gitlab/config:/etc/gitlab'
    - '/srv/gitlab/logs:/var/log/gitlab'
    - '/srv/gitlab/data:/var/opt/gitlab'

参考

GitLab Docker images

相关文章

网友评论

      本文标题:GitLab搭建

      本文链接:https://www.haomeiwen.com/subject/fdwcdhtx.html