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
Basics A transaction is an atomic operation on a ...
The idea of using token for login verification ...
Abstract: Analysis of two MySQL SQL statement loc...
Vue version, copy it to the file and use it <t...
The reason is that this type of web page originate...
Table of contents 1. Scope 1. Global scope 2. Loc...
This article example shares the specific code of ...
mysql basic data types Overview of common MySQL d...
This article shares the specific code of JavaScri...
CSS matches multiple classes The following HTML t...
This article shares the specific code for JavaScr...
Introduction to influxDB influxDB is a distribute...
1. MySql Architecture Before introducing the stor...
Recently, the company is preparing to develop an ...
Declaring variables Setting Global Variables set ...