马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
我们部署了docker的gitlab,使用自带的正常,老板担心服务器崩掉,所以希望将数据库剥离出来,连接外部数据库,我用docker部署一个pg,手动建立了一个数据库,先将数据库备分,将里面的database.sql恢复数据库,但是启动却报错,一直卡在这里:Recipe: gitlab::database_migrations
web-1 | ruby_block[check remote PG version] action nothing (skipped due to action :nothing)
web-1 | rails_migration[gitlab-rails] action run[2025-02-10T07:52:54+00:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.然后就反复重启。
docker-compose.yml
version: '3.6'
services:
web:
image: 'registry.gitlab.cn/omnibus/gitlab-jh:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.example.com:8930'
gitlab_rails['gitlab_shell_ssh_port'] = 2225
postgresql['enable'] = false
gitlab_rails['db_adapter'] = "postgresql"
gitlab_rails['db_encoding'] = "unicode"
gitlab_rails['db_host'] = "192.168.0.104"
gitlab_rails['db_port'] = "5432"
gitlab_rails['db_username'] = "gitlab"
gitlab_rails['db_password'] = "gitlab123"
gitlab_rails['db_database'] = "gitlabhq_production"
ports:
- '8930:8930'
- '2225:22'
volumes:
- '/home/gitLab2/config:/etc/gitlab'
- '/home/gitLab2/logs:/var/log/gitlab'
- '/home/gitLab2/data:/var/opt/gitlab'
shm_size: '512m'
请问一下是什么原因? |