gitlab-compose.yml

version: '3'
services:
    gitlab:
      image: 'gitlab/gitlab-ce'
      restart: always
      privileged: true
      hostname: gitlab 
      container_name: gitlab
      environment:
        TZ: 'Asia/Shanghai'
        GITLAB_OMNIBUS_CONFIG: |
          external_url 'http://192.168.174.21:8088'
          gitlab_rails['gitlab_shell_ssh_port'] = 2222
          nginx['listen_port'] = 80
      networks:
        - test
      ports:
        - '8088:80'
        - '2443:443'
        - '2222:22'
      volumes:
        - ./config:/etc/gitlab
        - ./data:/var/opt/gitlab
        - ./logs:/var/log/gitlab
      logging: 
        options: 
          max-size: "512M"
          max-file: "1"
networks:
  test:
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐