gitlab容器安装
            
            
              安装
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
   | version: '3' services:     gitlab:       image: 'gitlab/gitlab-ce:13.3.6-ce.0'       restart: always       container_name: gitlab       deploy:         resources:           limits:             cpus: '2'             memory: 4G           reservations:             cpus: '0.5'             memory: 200M       environment:         TZ: 'Asia/Shanghai'         GITLAB_OMNIBUS_CONFIG: |           external_url 'http://192.168.40.100:8999'           gitlab_rails['time_zone'] = 'Asia/Shanghai'            gitlab_rails['gitlab_shell_ssh_port'] = 3222           unicorn['port'] = 8888           nginx['listen_port'] = 8999           registry_external_url 'http://192.168.40.100:8000'       ports:         - '8999:8999'         - '9443:443'         - '3222:22'         - '8000:8000'       volumes:         - /data/gitlab/config:/etc/gitlab         - /data/gitlab/repo:/var/opt/gitlab         - /data/gitlab/logs:/var/log/gitlab
 
  |