1. Download the gitlab image docker pull gitlab/gitlab-ce 2. Run the gitlab instance GITLAB_HOME=`pwd`/data/gitlab docker run -d \ --hostname gitlab \ --publish 8443:443 --publish 80:80 --publish 2222:22 \ --name gitlab \ --restart always \ --volume $GITLAB_HOME/config:/etc/gitlab \ --volume $GITLAB_HOME/logs:/var/log/gitlab \ --volume $GITLAB_HOME/data:/var/opt/gitlab \ gitlab/gitlab-ce 3. Configure the gitlab instance 3.1 Configure Email: docker exec -t -i gitlab vim /etc/gitlab/gitlab.rb The following configuration of the mailbox takes NetEase 163 mailbox as an example: gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.163.com" gitlab_rails['smtp_port'] = 25 gitlab_rails['smtp_user_name'] = "[email protected]" gitlab_rails['smtp_password'] = "xxxxpassword" gitlab_rails['smtp_domain'] = "163.com" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = false gitlab_rails['smtp_openssl_verify_mode'] = "peer" gitlab_rails['gitlab_email_from'] = "[email protected]" user["git_user_email"] = "[email protected]" Please note that the [email protected] above represents the user name, that is, the email address, and xxxxpassword is not the login password of the email address but the client authorization password of NetEase email. You can check it in Settings - POP3/SMTP/IMAP - Client Authorization Password on the NetEase email web page. 3.2 Configuring external access URL This must be configured, otherwise the default URL is the container's host name. At the beginning, because the port mapping 80->8080 was done, it was set to external_url http://10.103.240.36:8080 Later I found that external_url can only be configured with IP or domain name, not port, otherwise it cannot be started. So we can only set the port to 80->80, and then set external_url to: external_url http://10.103.240.36 4. Restart gitlab docker restart gitlab The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Example of how to quickly delete a 2T table in mysql in Innodb
Table of contents Question: Case (1) fork before ...
CSS naming conventions (rules) Commonly used CSS ...
1. Delete node Execute kubectl delete node node01...
Table of contents 1. Isolation Level READ UNCOMMI...
Table of contents Preface InnoDB storage architec...
Method 1: Please add the following code after <...
In MySQL, database garbled characters can general...
I will be learning MySQL next semester. I didn...
<p><b>This is bold font</b></...
The operating system for the following content is...
Problem description: The user has a requirement t...
Recently, I solved the problem of Docker and the ...
Dark background style page design is very popular...
How to implement the paging function of MyBatis i...
First, let's talk about why we need to divide...