Best Self-Hosted Git Servers
Self-hosted Git servers put your repositories on hardware you own, from a 512 MB forge with pull requests up to a full DevOps platform that wants 8 GB. Settle that span first, because it is the widest on any hub here: Gogs documents 512 MB, GitLab CE documents 8 GB as its constrained floor and 16 GB as the real baseline, and everything else sits between them. The second question is whether you want a forge at all. Gitea, Forgejo, Gogs, GitLab, OneDev and GitBucket all give you pull requests, issues and a web UI; Soft Serve gives you SSH, a terminal UI and clones, and that is the point of it rather than a gap in it — it is somewhere to push, not somewhere to review code. Then read the licence line twice. GitLab and OneDev are open core, with real features held behind paid tiers, while Gitea, Forgejo, Gogs and GitBucket are not. Governance matters to some readers too: Forgejo is a community hard fork of Gitea, created after Gitea's development moved under a company. And one runtime outlier — GitBucket is a Java WAR you start with java -jar, where everything else here is a container or a single binary.
Code hosting apps
Forgejo
GitBucket
Gitea
GitLab CE
Gogs
OneDev
Soft Serve
Head-to-heads in this category
A light forge under a nonprofit umbrella, or a whole DevOps platform with a much larger hardware bill.
Featherweight forge vs. code intelligence.
The same app, two stewards — and no way back.
The fork that grew, or the original.
A DevOps platform, or just a forge.
The small original forge, or a community-run descendant with CI and a package registry.
Paid link — we earn a commission if you shop through it.
Replace a paid tool
Common questions
How much RAM do self-hosted apps in Code hosting need?
Across the 7 apps in Code hosting, minimums run from 256 MB (Soft Serve) to 16384 MB (GitLab CE).
Which app in Code hosting uses the least RAM?
Of the 5 apps in Code hosting we measured, Gogs used the least: 39 MB at idle (first boot, measured Sep 2026).
Do self-hosted apps in Code hosting support Docker?
6 of the 7 apps in Code hosting list Docker support.