gitlab docker-file 配置域名请教

查看 68|回复 2
作者:awanganddong   
version: '3.3'
services:
  gitlab:
    image: gitlab/gitlab-ce:latest
    container_name: gitlab-ce
    hostname: gitlab.test.com
    restart: always
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'http://gitlab.test.com:8000'
        gitlab_rails['gitlab_shell_ssh_port'] = 22
        puma['worker_timeout'] = 30
        gitlab_rails['time_zone'] = 'Asia/Shanghai'
        puma['worker_processes'] = 2
        postgresql['shared_buffers'] = "256MB"
        sidekiq['max_concurrency'] = 8
        postgresql['max_worker_processes'] = 4
        puma['per_worker_max_memory_mb'] = 600
        prometheus_monitoring['enable'] = false
        sidekiq['min_concurrency'] = 8
    ports:
      - "8000:80"
      - "8822:22"
    volumes:
      - './gitlab/config:/etc/gitlab'
      - './gitlab/logs:/var/log/gitlab'
      - './gitlab/data:/var/opt/gitlab'
    networks:
      - gitlab
  gitlab-runner:
    image: gitlab/gitlab-runner:alpine
    restart: always
    depends_on:
      - gitlab
    volumes:
      - ./gitlab/gitlab-runner:/etc/gitlab-runner
      - /var/run/docker.sock:/var/run/docker.sock
      - /bin/docker:/bin/docker
    networks:
      - gitlab
networks:
  gitlab:
这是一份 gitlab docker 文件。现在我想配置域名来访问它,大家看下 external_url 这里是不是有问题,一直提示 502

gitlab, var, Networks, puma

wu00   
ports:
- "8000:8000"
- "8822:22"
awanganddong
OP
  
@wu00 不可以
您需要登录后才可以回帖 登录 | 立即注册

返回顶部