Teach you the detailed process of using Docker to build the Chinese version of gitlab community

Teach you the detailed process of using Docker to build the Chinese version of gitlab community

1. Use Docker Compose to configure startup

If you don't know Docker Compose, please read my blog post "Teaching you how to install and use Docker Compose step by step"

1. Create a docker-compose.yml file in the /root directory

Use vi docker-compose.yml to create a docker-compose.yml file (the file location here can be modified according to your preferences)

2. The contents of the docker-compose.yml file are as follows

version: '2'
services:
    gitlab:
      image: 'twang2218/gitlab-ce-zh:11.1.4'
      restart: unless-stopped
      # Please change gitlab.example.com:8888 to your server ip/domain name: port number hostname: 'gitlab.example.com:8888'
      environment:
        TZ: 'Asia/Shanghai'
        GITLAB_OMNIBUS_CONFIG: |
          # Please change http://gitlab.example.com:8888 to your server ip/domain name:port numberexternal_url 'http://gitlab.example.com:8888'
          gitlab_rails['time_zone'] = 'Asia/Shanghai'
          # The configurations that need to be configured in gitlab.rb can be configured here, one line per configuration, pay attention to indentation.
          # For example, the following email configuration:
          # gitlab_rails['smtp_enable'] = true
          # gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
          # gitlab_rails['smtp_port'] = 465
          # gitlab_rails['smtp_user_name'] = "[email protected]"
          # gitlab_rails['smtp_password'] = "password"
          # gitlab_rails['smtp_authentication'] = "login"
          # gitlab_rails['smtp_enable_starttls_auto'] = true
          # gitlab_rails['smtp_tls'] = true
          # gitlab_rails['gitlab_email_from'] = '[email protected]'
      ports:
        - '8888:8888'
        - '8443:443'
        - '822:22'
      volumes:
        - config:/etc/gitlab
        - data:/var/opt/gitlab
        - logs:/var/log/gitlab
volumes:
    config:
    data:
    logs:

The configuration content here is extracted from: https://hub.docker.com/r/twang2218/gitlab-ce-zh

3. Use docker-compose up -d to start the container (if there is no image needed locally, it will be automatically pulled), and use docker-compose down to stop the service.

4. Use docker ps -a to view the running status of the container

5. Access your server IP/domain name: port number. If you see the following page, you are successful (you need to set a password for the first visit)

Note: If you see a 502 page when accessing, please don't worry, because it takes some time for gitlab to start. Wait a few minutes and refresh the page.

This is the end of this article about teaching you how to build the Chinese version of gitlab community with Docker. For more relevant content about building gitlab with Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed tutorial on using Docker to build Gitlab based on CentOS8 system
  • Two ways to build a private GitLab using Docker
  • Methods and steps for deploying GitLab environment based on Docker
  • Detailed tutorial on building Gitlab server on CentOS8.1
  • How to build gitlab on centos6
  • Centos7 uses docker to build gitlab server
  • How to build gitlab using Docker example
  • Steps to build your own private GitHub repository with GitLab
  • Detailed explanation of using docker to build gitlab
  • Build a local GitLab server on CentOS7

<<:  How to set an alias for a custom path in Vue

>>:  Not a Chinese specialty: Web development under cultural differences

Recommend

VMware12.0 installation Ubuntu14.04 LTS tutorial

I have installed various images under virtual mac...

JavaScript to achieve tab switching effect

This article shares the specific code of JavaScri...

CSS text alignment implementation code

When making forms, we often encounter the situati...

Detailed explanation of Windows time server configuration method

Recently, I found that the company's server t...

Elementui exports data to xlsx and excel tables

Recently, I learned about the Vue project and cam...

How to install and configure WSL on Windows

What is WSL Quoting a passage from Baidu Encyclop...

docker logs - view the implementation of docker container logs

You can view the container logs through the docke...

WeChat applet realizes simple tab switching effect

This article shares the specific code for WeChat ...

Notes on using the blockquote tag

<br />Semanticization cannot be explained in...

HTML design pattern daily study notes

HTML Design Pattern Study Notes This week I mainl...

JavaScript function encapsulates random color verification code (complete code)

An n-digit verification code consisting of number...