镜像概览

完整引用
docker.io/querycap/gitlab-ce
Registry
docker.io
命名空间
querycap
仓库
gitlab-ce
已缓存 Tag 数
4
最近同步
07/06/2026, 03:07 PM
相关主题

简介

querycap 同步的 GitLab Community Edition 镜像,提供 Git 托管、CI/CD 与 Issue 协作,资源占用高,需 PostgreSQL、Redis 与持久化 data 目录。

详细介绍

querycap/gitlab-ce 是 GitLab CE 的第三方镜像同步,功能与官方 gitlab/gitlab-ce 一致:代码仓库、Merge Request、内置 Runner 调度与 Container Registry。部署需充足 CPU/内存(建议 4C8G 起),/etc/gitlab/var/opt/gitlab 必须 volume 持久化。tag 较少,生产应 pin 具体版本、配置 external_url 与 SMTP,并将 GITLAB_ROOT_PASSWORD 经 env 初始化后轮换。

快速启动

docker run -d --name gitlab \
  -p 443:443 -p 80:80 -p 2222:22 \
  -e GITLAB_ROOT_PASSWORD=change-me \
  docker.io/querycap/gitlab-ce:latest

推荐实践

docker run -d --name gitlab \
  --restart unless-stopped \
  -p 443:443 -p 80:80 -p 2222:22 \
  -e GITLAB_OMNIBUS_CONFIG="external_url 'https://gitlab.example.com'" \
  -v /data/gitlab/config:/etc/gitlab \
  -v /data/gitlab/logs:/var/log/gitlab \
  -v /data/gitlab/data:/var/opt/gitlab \
  docker.io/querycap/gitlab-ce:16.11.0-ce.0

核心参数说明

  • -p 443:443 — HTTPS Web 与 Git over HTTPS
  • -p 2222:22 — SSH clone 端口
  • -e GITLAB_OMNIBUS_CONFIG — omnibus 内联配置
  • -v .../config / data / logs — 三块必需持久化
  • --restart unless-stopped — DevOps 平台持续在线
  • 固定 tag — 大版本升级须走 release notes

Kubernetes

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: gitlab
spec:
  serviceName: gitlab
  replicas: 1
  selector:
    matchLabels:
      app: gitlab
  template:
    metadata:
      labels:
        app: gitlab
    spec:
      containers:
        - name: gitlab
          image: docker.io/querycap/gitlab-ce:16.11.0-ce.0
          ports:
            - containerPort: 443
          volumeMounts:
            - name: data
              mountPath: /var/opt/gitlab
  volumeClaimTemplates:
    - metadata:
        name: data
      spec:
        accessModes: ["ReadWriteOnce"]
        resources:
          requests:
            storage: 50Gi
---
apiVersion: v1
kind: Service
metadata:
  name: gitlab
spec:
  selector:
    app: gitlab
  ports:
    - port: 443
      targetPort: 443

单副本 StatefulSet + 大 PVC;资源 requests 按官方最低配,Ingress 配置 TLS。

最新 Tag(20 条)

查看全部 4 个 Tag →
Tag架构推送时间大小Digest同步期望操作
docker.io/querycap/gitlab-ce
:14.2.0-ce.0
linux/arm64linux/amd64
2021/08/23 10:56915.5 MBsha256:e5abc28ef5e2
docker.io/querycap/gitlab-ce
:14.1.0-ce.0
linux/arm64linux/amd64
2021/07/23 10:27900.2 MBsha256:0409943390e8
docker.io/querycap/gitlab-ce
:14.0.5-ce.0
linux/amd64linux/arm64
2021/07/12 10:41927.6 MBsha256:4638201f8062
docker.io/querycap/gitlab-ce
:14.0.1-ce.0
linux/amd64linux/arm64
2021/07/09 10:59927.5 MBsha256:08eaf8472252