他竟然在开启服务的时候编译,一编译一下午还没完,咋办啊!
# docker-compose.yml
version: '3.6'
services:
web:
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: 'xxx'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'xxx'
gitlab_rails['gitlab_shell_ssh_port'] = 2222
ports:
- '80:80'
- '433:433'
- '2222:22'
volumes:
- '/home/mmr/docker/gitlab/config:/etc/gitlab'
- '/home/mmr/docker/gitlab/logs:/var/log/gitlab'
- '/home/mmr/docker/gitlab/data:/var/opt/gitlab'
shm_size: '256m'
deploy:
resources:
limits:
memory: 512M
1
mmr OP ```text
Recipe: gitlab::database_migrations * ruby_block[check remote PG version] action nothing (skipped due to action :nothing) * rails_migration[gitlab-rails] action run ``` 而且一直重启,5 分钟自动重启一次,每次日志都搞这一个模块。 |
2
dalang 2023-02-02 18:23:14 +08:00
gitlab docker 用这个 https://github.com/sameersbn/docker-gitlab
|
3
seers 2023-02-02 19:25:38 +08:00
ram 太少了,4g 勉强跑起来
|
4
hefish 2023-02-02 19:34:06 +08:00
内存也忒小了吧。
gitlab 印象中是 ruby 做的,启动的时候跟 Java 之类的类似,都要预编译。而且 ruby 是出了名的慢。 |