简体   繁体   English

Gitlab docker和external_url

[英]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.

相关问题 如果设置了external_url,则Gitlab docker无法正常工作 - Gitlab docker not working if external_url is set gitlab-ce:在 gitlab.rb 中不使用 external_url 更改克隆 url - gitlab-ce: change clone url without using external_url in gitlab.rb 在external_url中使用任何部分都会导致服务器在docker和docker-machine上无法访问 - Using a any part in external_url causes the server to be unreachable on docker and docker-machine Docker 上的 GitLab - 如何为 GitLab 设置外部 URL - GitLab on Docker - How to set the external URL for GitLab Gitlab docker 实例不接受我的外部 URL - Gitlab docker instance doesn't take my external URL Docker GitLab:从GUI复制和粘贴链接,Web资源,证书和实际端口中解耦GitLab“外部URL”和“ssh端口” - Docker GitLab: Decoupling GitLab “external url” and “ssh port” from the GUI copy and paste links, web resources, certificates and actual ports gitlab docker 注册与外部 nginx 和综合 - gitlab docker registry with external nginx and omnibus 如何找到运行在gitlab的docker-in-docker的url - How to find url of docker-in-docker running in gitlab 在 GitLab-ci Docker build 中执行外部 bash 脚本 - Execute external bash script inside GitLab-ci Docker build 如何在docker上配置gitlab-ce域url - How to configure gitlab-ce domain url on docker
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM