Gitlab泊坞窗和external_url [英] Gitlab docker and external_url

查看:572
本文介绍了Gitlab泊坞窗和external_url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我使用docker安装了最新的gitlab。我用-p 10080:80和10022:22

Hello I installed latest gitlab using docker. I started the container with -p 10080:80 and 10022:22

启动了容器,我可以浏览gitlab并执行所需的操作,甚至可以使用端口10080 git克隆http和ssh和10022。

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.

我更改了ssh_shell属性。

I changed the ssh_shell property. That works fine!

无论出于何种原因,任何试图修改external_url属性的尝试都行不通!我输入了 http:// myhost:10080 ,但是当我重新启动容器时,它似乎并不想启动。我不能浏览任何内容,只需对其进行评论即可。

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.

因此,现在前端显示了正确的ssh克隆url,而不显示了http。 >

So now the front end shows the correct ssh clone url, but not the http one.

推荐答案

好吧,这要归功于此:如果设置了external_url,则Gitlab docker无法工作

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

基本上,如果您使用一个端口,它还会使nginx端口绑定到该端口。因此,当您启动Docker容器时,您需要-p 10080:10080

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

这篇关于Gitlab泊坞窗和external_url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆