Note: It is recommended that the virtual machine memory is 2G or more, and the acceleration image of Alibaba Cloud must be configured 1. Download the image file docker pull beginor/gitlab-ce:11.0.1-ce.0 2. Create GitLab configuration (etc), log (log), and data (data) outside the container to facilitate future upgrades mkdir -p /mnt/gitlab/etc mkdir -p /mnt/gitlab/log mkdir -p /mnt/gitlab/data 3. Run the GitLab container Enter the /mnt/gitlab/etc directory and run the following command docker run \ --detach \ --publish 8443:443 \ --publish 8090:80 \ --name gitlab \ --restart unless-stopped \ -v /mnt/gitlab/etc:/etc/gitlab \ -v /mnt/gitlab/log:/var/log/gitlab \ -v /mnt/gitlab/data:/var/opt/gitlab \ beginor/gitlab-ce:11.0.1-ce.0 4. Modify /mnt/gitlab/etc/gitlab.rb Change external_url to the domain name or IP address of the deployment machine vi /mnt/gitlab/etc/gitlab.rb Change external_url to 'http://192.168.125.126' 5. Modify /mnt/gitlab/data/gitlab-rails/etc/gitlab.yml vi /mnt/gitlab/data/gitlab-rails/etc/gitlab.yml Found the keyword * ## Web server settings * Change the host value to the mapped external host IP address and port 6. Restart the Docker container First stop the container, delete the container information, restart Docker, and then rerun the GitLab container. 7. Finish The gitlab web management page can be accessed normally This concludes this article about the steps for deploying a GitLab environment based on Docker. For more information about setting up a Docker GitLab environment, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Two methods of implementing automatic paging in Vue page printing
>>: MySQL complete collapse query regular matching detailed explanation
First, let’s understand what MySQL is? MySQL is a...
Table of contents Purpose of the table For exampl...
In the front-end layout of the form, we often nee...
This article uses examples to illustrate the usag...
To beautify the table, you can set different bord...
Copy code The code is as follows: wmode parameter...
1: readonly is to lock this control so that it can...
1. To develop web responsively, the page must ada...
The GROUP BY syntax can group and count the query...
Link: https://qydev.weixin.qq.com/wiki/index.php?...
Network security is a very important topic, and t...
In this article, I will show you how to install a...
Preface In many cases, we will use virtual machin...
Preface Before talking about covering index, we m...
Preface There are many open source monitoring too...