Gitlab docker and external_url

我与影子孤独终老i 提交于 2019-12-10 17:18:16

问题


Hello I installed latest gitlab using docker. I started the container with -p 10080:80 and 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.

In the front end though the urls don't show with the appropriate ports.

I changed the ssh_shell property. That works fine!

For whatever reason any attempt to modify the external_url property doesn't work! I put "http://myhost:10080" But when I restart the container it doesn't seem to want to start. 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.


回答1:


Ok figured it out thanks to this: Gitlab docker not working if external_url is set

Basically if you set external url with a port it also causes the nginx port to bind to that port. So when you start your docker containers you need to -p 10080:10080



来源:https://stackoverflow.com/questions/39738436/gitlab-docker-and-external-url

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!