Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy gitlab in docker

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to deploy gitlab in docker. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

1. After startup, it is found that the download path of the project is Container id.

Solution: because I previously installed gitlab separately with vmware, referring to other people's blogs and saying that external_url should be configured as a host IP, I configured the external_url in the / etc/gitlab/gitlab.rb file as the ip address of the container. The result is sad this time, it is right to use DockerToolbox, vmware or server, but I am using Docker Desktop equivalent to running on my local, so external_url should be configured to 127.0.0.1 externalaccounurl should refer to the access address of the project.

two。 Although the address on the localhost gitlab is configured, it still cannot be accessed (http://127.0.0.1/cyh/config.git), because the address refers to the access address in the container, here

We need access to http://127.0.0.1:8001/cyh/config.git

Clone succeeded

Of course, the best way is to change port 80 of gitlab to be consistent with the external port.

3. When using the webhook function of gitlab, the Times error "Requests to the local network are not allowed"

Solution: security control has been added after the gitlab10 version. My version is 12, so I need to use the administrator settings.

Allow requests to the local network from hooks and services Cheng check box

On how to deploy gitlab in docker to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report