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
1
wu00 2023-02-20 18:52:56 +08:00
ports:
- "8000:8000" - "8822:22" |
2
awanganddong OP @wu00 不可以
|
3
awanganddong OP @wu00 谢谢你了,你说的是对的,配置参数之后,要过一会才能生效。
|
4
awanganddong OP |