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

MYSQL slow query and log example explanation

1. Introduction By enabling the slow query log, M...

Several ways to use require/import keywords to import local images in v-for loop

Table of contents Problem Description Method 1 (b...

A quick solution to the first login failure in mysql5.7.20

First, we will introduce how (1) MySQL 5.7 has a ...

How to apply TypeScript classes in Vue projects

Table of contents 1. Introduction 2. Use 1. @Comp...

What kinds of MYSQL connection queries do you know?

Preface If the query information comes from multi...

How to query duplicate data in mysql table

INSERT INTO hk_test(username, passwd) VALUES (...

Implementation of Mysql User Rights Management

1. Introduction to MySQL permissions There are 4 ...

About the implementation of JavaScript carousel

Today is another very practical case. Just hearin...

Detailed explanation of several methods of JS array dimensionality reduction

Dimensionality reduction of two-dimensional array...

Example of ellipsis when CSS multi-line text overflows

Ellipses appear when multi-line text overflows Th...

About React Native unable to link to the simulator

React Native can develop iOS and Android native a...

Solution to span width not being determined in Firefox or IE

Copy code The code is as follows: <html xmlns=...

How is a SQL statement executed in MySQL?

Table of contents 1. Analysis of MySQL architectu...

Implementation of Docker to build Zookeeper&Kafka cluster

I've been learning Kafka recently. When I was...