Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marcel R c354784706 Make the Default theme accent blue and clear cache on boot
Replace the orange selected-item indicator and contribution graph in
the Default theme with blue. Other themes and semantic oranges such as
warnings are unchanged.

Run cache:clear after database setup so fragments rendered by a
previous image are not served from Redis after an upgrade.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 18:55:42 +01:00
.agents Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.dependency_cruiser_todo Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.devfile Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.eslint_todo Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.github Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.gitlab Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.keela Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.lefthook Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.rubocop Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.rubocop_todo Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
app Make the Default theme accent blue and clear cache on boot 2026-11-19 18:55:42 +01:00
bin Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
changelogs Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
config Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
danger Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
data Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
db Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
doc Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
doc-locale Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
domains Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
file_hooks Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
fixtures Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
gems Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
generator_templates Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
haml_lint/linter Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
keeps Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
lib Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
locale Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
log Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
metrics_server Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
optimized Make the Default theme accent blue and clear cache on boot 2026-11-19 18:55:42 +01:00
patches Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
public Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
qa Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
rubocop Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
scripts Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
shared Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
sidekiq_cluster Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
spec Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
storybook Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
tmp Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
tooling Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
vendor Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
workhorse Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.browserslistrc Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.devfile.yaml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.dockerignore Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.editorconfig Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.git-blame-ignore-revs Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.gitattributes Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.gitignore Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.gitlab-ci.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.gitleaksignore Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.gitpod.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.graphqlrc Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.haml-lint.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.index.yml.example Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.labkit_logging_todo.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.license_encryption_key.pub Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.mailmap Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.markdownlint-cli2.yaml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.npmrc Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.nvmrc Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.prettierignore Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.prettierrc Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.projections.json.example Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.rubocop.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.solargraph.yml.example Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.stylelintrc Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.test_license_encryption_key.pub Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.vale.ini Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.yamllint Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
.yarnrc.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
AGENTS.md Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
argo_translation.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
axe-linter.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
babel.config.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Brewfile Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
caproni-project.yaml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
CHANGELOG-EE.md Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
CHANGELOG.md Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
CLAUDE.md Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
config.ru Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
CONTRIBUTING.md Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
crowdin.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Dangerfile Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
DEI.md Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
docker-compose.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Dockerfile.assets Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
DUO_WORKFLOW_EXECUTOR_VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
eslint.config.mjs Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Gemfile Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Gemfile.lock Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Gemfile.next Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Gemfile.next.lock Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
GITALY_SERVER_VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
GITLAB_ELASTICSEARCH_INDEXER_VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
GITLAB_KAS_VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
GITLAB_OPENBAO_VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
GITLAB_PAGES_VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
GITLAB_SHELL_VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
GITLAB_WORKHORSE_VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
GITLAB_ZOEKT_VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Guardfile Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
INSTALLATION_TYPE Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
jest.config.base.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
jest.config.contract.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
jest.config.integration.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
jest.config.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
jest.config.scripts.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
jest.config.snapshots.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
jest_resolver.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
lefthook.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
LICENSE Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
MAINTENANCE.md Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
mise.toml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
opencode.example.json Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
package.json Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
PHILOSOPHY.md Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Pipfile Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Pipfile.lock Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
postcss.config.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
Rakefile Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
README.md Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
tests.yml Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
VERSION Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
vite.config.js Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
vitest.eslint.config.mjs Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
vitest.vue3migration.config.mjs Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00
yarn.lock Import GitLab Optimized, a small-VPS fork of GitLab CE 2026-11-18 22:57:23 +01:00

GitLab Optimized logo

GitLab Optimized

A fork of GitLab Community Edition tuned to run well on small VPSes.


GitLab Optimized is GitLab CE with changed defaults and a single-image build that fits on a 2 vCPU server with about 4 GB of free RAM. A fresh instance idles at about 2.25 GB in total, including PostgreSQL and Redis. A stock Omnibus install usually needs 4 GB or more.

What's different

Area Stock GitLab GitLab Optimized
Edition EE CE (FOSS)
Web server (Puma) master + several worker processes one process, 4 threads
Background jobs (Sidekiq) 20 threads 5 threads
Housekeeping cron jobs ~30 run every 1–2 min 15 slowed to every 5–30 min
Memory allocator glibc jemalloc with fast decay
Gitaly 100 cached git cat-file processes, unlimited clones 10 cached processes, 2 clones per repo, soft Go heap cap
PostgreSQL 100 connections, parallel queries 60 connections, no parallel gather, 256 MB buffers
Bundled extras Prometheus, exporters, KAS, Pages, registry not included
Service Ping on off

The full list, with the reasoning behind each change, is in optimized/README.md.

Quick start

You need Docker with Compose v2 on an arm64 or amd64 Linux host, plus a reverse proxy that handles TLS.

# 1. Build the image (from the repository root)
docker buildx build --platform linux/arm64 -f optimized/Dockerfile -t gitlab-optimized:latest .

# 2. Configure
cd optimized
cat > .env <<EOF
GITLAB_HOST=gitlab.example.com
DB_PASSWORD=$(openssl rand -hex 24)
EOF

# 3. Start PostgreSQL, Redis and GitLab
docker compose up -d

# 4. Get the initial password for the `root` user
docker compose exec gitlab cat /data/config/initial_root_password

The first boot creates the database, which takes a few minutes. GitLab then listens on 127.0.0.1:8929. Point your reverse proxy at it, for example with Caddy:

gitlab.example.com {
	reverse_proxy 127.0.0.1:8929 {
		flush_interval -1
	}
}

To build for amd64, change --platform. On a small server, build on a bigger machine and copy the image over:

docker save gitlab-optimized:latest | gzip -1 | ssh user@server 'gunzip | docker load'

Repository layout

  • optimized/ holds everything specific to the fork: the Dockerfile, the tuned configuration, the container entrypoint, the Compose file and the branding sources.
  • Everything else is GitLab's upstream source, with only minimal branding changes. Fork changes are kept in optimized/ so that new upstream releases merge cleanly.

Limitations

  • Git over SSH isn't wired up yet. Use HTTPS with a personal access token.
  • Outgoing email isn't configured by default. Set up SMTP before inviting users.
  • EE-only features aren't available. The ee/ directory isn't part of this repository.

License

GitLab Optimized is released under the MIT License, the same as GitLab Community Edition, which it is based on.

GitLab is a trademark of GitLab Inc. This project is not affiliated with or endorsed by GitLab Inc.