美文网首页
gitlab容器的搭建

gitlab容器的搭建

作者: 飞升之路 | 来源:发表于2019-01-08 22:56 被阅读0次

    构建脚本

    gitlab:
      image: 'twang2218/gitlab-ce-zh:9.1.3'
      ports:
        - '80'
        - '10012:22'
        - '443'
      restart: always
      environment:
        - 'GITLAB_OMNIBUS_CONFIG=external_url ''http://gitlab.xx.com'';gitlab_rails[''smtp_enable''] = true;gitlab_rails[''smtp_address''] = "smtp.163.com";gitlab_rails[''smtp_port''] = 25;gitlab_rails[''smtp_user_name''] = "xx@163.com";gitlab_rails[''smtp_password''] = "xx";gitlab_rails[''smtp_domain''] = "163.com";gitlab_rails[''smtp_authentication''] = "login";gitlab_rails[''smtp_enable_starttls_auto''] = true;gitlab_rails[''gitlab_email_from''] = "xx@163.com";user["git_user_email"] = "xx@163.com";'
      labels:
        aliyun.probe.url: 'tcp://container:80'
        aliyun.probe.initial_delay_seconds: '10'
        aliyun.scale: '1'
        aliyun.routing.port_80: 'http://gitlab.xx.com'
        aliyun.lb.port_22: 'tcp://gitlab_com:22'
      volumes:
        - 'gitlab:/var/opt/gitlab:rw'
    

    相关信息

    相关文章

      网友评论

          本文标题:gitlab容器的搭建

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