美文网首页
docker-compose启动gitlab

docker-compose启动gitlab

作者: 甘伍觉莫 | 来源:发表于2019-01-19 22:45 被阅读5次
    version: '3'
    
    services:
      gitlab:
        container_name: gitlab
        image: gitlab/gitlab-ce:latest
        privileged: true
        hostname: 'mygitlab.com'
        environment:
            TZ: 'Asia/Shanghai'
            GITLAB_OMNIBUS_CONFIG: |
              external_url 'http://mygitlab.com:10080'
              gitlab_rails['gitlab_shell_ssh_port'] = 10022
        volumes:
          - ./data/config:/etc/gitlab
          - ./data/logs:/var/log/gitlab
          - ./data/data:/var/opt/gitlab
        ports:
          - "10080:10080"
          - "14443:443"
          - "10022:22"
    

    建议在 Linux 上部署, windows 上我尝试了各种方法, 都有各种各样的问题.Mac OS 没有用过, 不做评价.

    相关文章

      网友评论

          本文标题:docker-compose启动gitlab

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