[英]Gitlab docker and external_url
Hello I installed latest gitlab using docker. 您好我使用docker安装了最新的gitlab。 I started the container with -p 10080:80 and 10022:22
我用-p 10080:80和10022:22启动了容器
I can browse gitlab and do what I need I can even git clone both http and ssh using ports 10080 and 10022 respectively. 我可以浏览gitlab并做我需要的东西我甚至可以分别使用端口10080和10022 git克隆http和ssh。
In the front end though the urls don't show with the appropriate ports. 在前端虽然网址没有显示适当的端口。
I changed the ssh_shell property. 我更改了ssh_shell属性。 That works fine!
这很好用!
For whatever reason any attempt to modify the external_url property doesn't work! 无论出于何种原因,任何修改external_url属性的尝试都不起作用! I put " http://myhost:10080 " But when I restart the container it doesn't seem to want to start.
我把“ http:// myhost:10080 ”但是当我重新启动容器时,它似乎不想启动。 I can't browse nothing simply commenting it out it works again.
我无法浏览任何只是评论它再次起作用。
So now the front end shows the correct ssh clone url, but not the http one. 所以现在前端显示正确的ssh clone url,但不显示http。
Ok figured it out thanks to this: Gitlab docker not working if external_url is set 好了,这要归功于: 如果设置了external_url,Gitlab docker无法正常工作
Basically if you set external url with a port it also causes the nginx port to bind to that port. 基本上,如果您使用端口设置外部URL,它也会导致nginx端口绑定到该端口。 So when you start your docker containers you need to -p 10080:10080
因此,当您启动docker容器时,需要-p 10080:10080
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.