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
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.