docker-compose.yml

version: '3'
services:
  gitlab:
    container_name: gitlab
    image: twang2218/gitlab-ce-zh
    ports:
      - 443:443
      - 80:80
    user: root
    restart: unless-stopped
    privileged: true
    environment:
      - TZ=Asia/Shanghai
      - LANG=en_US.UTF-8
    volumes:
      - /data/gitlab/etc:/etc/gitlab
      - /data/gitlab/log:/var/log/gitlab
      - /data/gitlab/data:/var/opt/gitlab

 

linux使用docker-compose安装gitlab

 

 

首次访问会要求修改root密码