标签:
首先根据此文:
http://www.cnblogs.com/flasheryu/p/5740862.html
然后运行以下命令完成docker启动:
docker run --name=gitlab --env="GITLAB_OMNIBUS_CONFIG=registry_external_url ‘https://xxxx.com:xxxx‘;registry_nginx[‘ssl_certificate‘]=‘/etc/letsencrypt/live/xxxx.com/xxxx.com.crt‘;registry_nginx[‘ssl_certificate_key‘]=‘/etc/letsencrypt/live/xxxx.com/xxxx.com.key‘;external_url ‘https://xxxx.com/‘;nginx[‘redirect_http_to_https‘]=true;nginx[‘ssl_certificate‘]=‘/etc/letsencrypt/live/xxxx.com/xxxx.com.crt‘;nginx[‘ssl_certificate_key‘]=‘/etc/letsencrypt/live/xxxx.com/xxxx.com.key‘;" --env="PATH=/opt/gitlab/embedded/bin:/opt/gitlab/bin:/assets:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" --env="TERM=xterm" --volume="/srv/gitlab/config:/etc/gitlab" --volume="/srv/gitlab/logs:/var/log/gitlab" --volume="/srv/gitlab/data:/var/opt/gitlab" --volume="/volumes/proxy/certs:/etc/letsencrypt/live/xxxx.com" -p 0.0.0.0:xxxx:xxxx/tcp -p 0.0.0.0:22:22/tcp -p 0.0.0.0:443:443/tcp -p 0.0.0.0:80:80/tcp --detach=true gitlab/gitlab-ce /assets/wrapper
标签:
原文地址:http://www.cnblogs.com/flasheryu/p/5950213.html