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 33 34 35
| http: # 1
gitlab - GITLAB_HOST=公网地址 - GITLAB_ROOT_PASSWORD=管理员密码 - GITLAB_ROOT_EMAIL=管理员邮箱 ports: - '8088:80' - '2443:443' - '2222:22' # 2.
version: '3' services: web: image: 'twang2218/gitlab-ce-zh' restart: always hostname: '公网地址' environment: TZ: 'Asia/Shanghai' GITLAB_OMNIBUS_CONFIG: | external_url 'http://公网地址' gitlab_rails['gitlab_shell_ssh_port'] = 2222 unicorn['port'] = 8888 nginx['listen_port'] = 80 ports: - '8088:80' - '2443:443' - '2222:22' volumes: - ./config:/etc/gitlab - ./data:/var/opt/gitlab - ./logs:/var/log/gitlab
|