1.去hub.docker官网搜汉化的gitlab(搜gitlab-ce-zh)(前提执行完安装DockerCompose,阿里镜像等操作)
2.在docker中运行docker pull twang2218/gitlab-ce-zh
3.启动
软件是放在/usr/local目录下的(创建一个docker目录)
docker目录中创建gitlab目录
gitlab中创建一个 docker-compose.yml(i 进入编辑模式 ESC :wq!回撤保存)
version: '3'
services:
web:
image: 'twang2218/gitlab-ce-zh'
restart: always
hostname: '172.16.159.134'
environment:
TZ: 'Asia/Shanghai'
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://172.16.159.134'
gitlab_rai