【后台任务】后台检测 gitlab 版本的重复任务过多
部署方式:
services:
gitlab:
image: 'registry.gitlab.cn/omnibus/gitlab-jh:17.0.0'
restart: always
hostname: 'gitlab.xxxxxx.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.xxxxxx.com'
# Add any other gitlab.rb configuration here, each on its own line
# 时区
gitlab_rails['time_zone'] = 'Asia/Shanghai'
# http 重定向到 https
nginx['redirect_http_to_https'] = true
nginx['redirect_http_to_https_port'] = 80
# 监听的 IP
nginx['listen_addresses'] = ['172.26.11.2']
# 容器镜像库
registry_external_url 'https://registry.xxxxxx.com'
# 容器镜像库:http 重定向到 https
registry_nginx['redirect_http_to_https'] = true
registry_nginx['redirect_http_to_https_port'] = 80
# 容器镜像库:监听的 IP
registry_nginx['listen_addresses'] = ['172.26.12.2']
# Pages
pages_external_url 'https://pages.xxxxxx.com'
pages_nginx['enable'] = false
# Pages:http 重定向到 https
pages_nginx['redirect_http_to_https'] = true
gitlab_pages['redirect_http'] = true
# Pages:监听的 IP
gitlab_pages['external_http'] = ['172.26.13.2:80']
gitlab_pages['external_https'] = ['172.26.13.2:443']
ports:
- '80:80'
- '443:443'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m'
container_name: gitlab
networks:
- instance
- registry
- pages
networks:
instance:
driver: bridge
ipam:
config:
- subnet: 172.26.11.0/24
registry:
driver: bridge
ipam:
config:
- subnet: 172.26.12.0/24
pages:
driver: bridge
ipam:
config:
- subnet: 172.26.13.0/24
- 今天上午看的时候,有几百个检查 gitlab 版本更新的任务,被我全部重试后,现在又出来了
- 我记得之前的检查 gitlab 版本的任务,每 12 小时才计划执行一次