构建脚本
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'
相关信息