👍 What we like
- Gitea and Forgejo: a single binary, SQLite supported, upgrades by simply replacing the binary
- Gitea and Forgejo: GitHub Actions-style workflows and required approvals before merging
- GitLab CE: mature CI/CD (includes, templates, artifacts shared between jobs), registry, wiki and Pages in one tool
- Forgejo: community project backed by a non-profit organisation
👎 What to watch
- GitLab CE: 8 GB of RAM at the very least, risk of OOM kills on a small VPS
- GitLab CE: mandatory upgrade stops; part of the security features belong to the paid tiers
- Gitea and Forgejo: less tooling for large pipelines and runner fleets
- Gitea and Forgejo: registry without advanced security scanning by default
📑 Contents ▾
- 01 Available memory often decides for you
- 02 CI/CD: GitHub-style Actions or GitLab CI
- 03 Code review, issues, wiki and registry
- 04 Gitea or Forgejo: the difference is governance
- 05 Migrating from GitHub
- 06 Which forge for which profile
- 07 Where to host it: a mini PC at home or a VPS
- 08 Frequently asked questions
- Our picks
To host your code on a small server, alone or with a few people, Gitea or Forgejo is enough: both are Go binaries that make do with 1 GB of RAM and run workflows in the GitHub Actions format. GitLab CE needs at least 8 GB of RAM, 16 GB to be comfortable, but brings richer CI/CD, a container registry and fine-grained group and project management together in one tool. Between Gitea and Forgejo the technical gap is small: what really separates them is who runs the project.
This comparison is based on the documentation of the three projects and on user reports. It does not rely on measurements taken by Selfhostr. The details of a GitLab CE setup are in our self-hosted GitLab CE guide.
Available memory often decides for you
Gitea and Forgejo share the same architecture: a single binary, written in Go, backed by SQLite, PostgreSQL or MySQL. At idle, an instance uses roughly 50 to 150 MB of RAM according to user reports. An entry-level VPS with 1 GB of RAM and 1 vCPU, or a Raspberry Pi 4 or 5, is enough for a solo developer or a small team, database included. The CI runner can live on the same machine as long as builds stay light; move it elsewhere as soon as they load the CPU.
GitLab CE plays in another league. Written mainly in Ruby on Rails and Go, it is a multi-service application: the Omnibus package also installs the PostgreSQL database, a bundled NGINX and the Sidekiq workers. At idle, the Rails application and Sidekiq already take 1 to 2 GB. Plan on 8 GB of RAM at the very least and 16 GB, the GitLab documentation baseline for a single-node install, for comfortable use; with pipelines, runners and the registry on the same machine, usage grows further. On a $5/month VPS, OOM kills (the kernel killing a process for lack of memory) happen during heavy tasks such as job cleanup or asset compilation.
| Criterion | Gitea | Forgejo | GitLab CE |
|---|---|---|---|
| Primary language | Go | Go | Ruby and Go |
| Packaging | one binary | one binary | multi-service Omnibus package, or a Kubernetes deployment |
| RAM to get started | 1 GB | 1 GB | 8 GB minimum, 16 GB advised |
| CPU | 1 vCPU is enough | 1 vCPU is enough | 8 vCPU advised |
| Databases | SQLite, PostgreSQL, MySQL | SQLite, PostgreSQL, MySQL | PostgreSQL only |
| Upgrades | replace the binary, restart | replace the binary, restart | system package, mandatory upgrade stops |
CI/CD: GitHub-style Actions or GitLab CI
This is the criterion that truly separates the three forges once a team automates its builds.
Gitea Actions and Forgejo Actions use the GitHub Actions format. For a long time Gitea had no built-in CI and was paired with Jenkins or Drone; with Gitea Actions, workflows are written in YAML just as on GitHub, and the .github/workflows format of a repository coming from GitHub is supported. Forgejo offers the same compatibility. Most GitHub workflows run unchanged, with the same common actions (actions/checkout, actions/setup-node…), and jobs run on lightweight runners installed separately. Workflows that rely on GitHub-specific services need adjustments: run your workflows on a trial instance before migrating.
For a few dozen repositories this stays simple. For several hundred, you have to manage a fleet of Docker or Kubernetes runners, and part of the initial simplicity goes away.
GitLab CI/CD uses its own format, .gitlab-ci.yml, with more tooling: include of shared files and templates, finer pipeline logic (conditional parallelism, artifacts shared between jobs), pipeline graphs, coverage analysis and detailed logs. Runner management is more centralised and offers more autoscaling options. The downside: a GitHub Actions workflow cannot be reused as is, it has to be rewritten.
Code review, issues, wiki and registry
Pull requests and merge requests. Gitea and Forgejo talk about “pull requests”, like GitHub, in a clean interface: code review, inline comments and required approvals before merging. GitLab talks about “merge requests” and shows more context in the review view; it handles complex workflows better, with granular branch protection and issue boards that are richer than Gitea’s “Projects”. GitLab does, however, keep part of its features for its paid tiers: before making it a criterion, check that a specific review rule is part of the CE edition.
Wiki and documentation. Gitea and Forgejo offer a Markdown wiki per repository: simple, lightweight and enough for most projects. GitLab adds snippets shared across projects and GitLab Pages to publish static sites; Pages does, however, need wildcard DNS and a matching wildcard certificate.
Registry. All three forges include a container registry.
- Gitea and Forgejo: the registry is native and easy to configure; it stores images on local disk or in S3 storage. It offers no advanced security scanning by default, which is fine for internal use.
- GitLab: the registry is tied to group and project permissions, and pipelines authenticate to it with no credentials to manage. Advanced security features (vulnerability reports, DAST) are mostly in the paid tiers.
Gitea or Forgejo: the difference is governance
Forgejo is a community fork of Gitea born from a disagreement over governance. Gitea is run by Gitea Ltd, the commercial entity behind the project, and remains under the MIT licence; Forgejo is maintained by its community and backed by a non-profit organisation. Technically, the two remain close. In practice:
- Who decides. Gitea is run by a company that sells support; Forgejo by its community. If a commercial turn has already cost you a migration, this criterion matters.
- Moving from one to the other. Do not assume you can freely switch from one to the other on the same data: it depends on the versions involved. Before any switch, read the migration page of the Forgejo documentation for your exact version, and back up data and database.
- Federation. Forgejo is working on federation through ActivityPub, the protocol used by Mastodon or PeerTube, so that instances can interact with each other. The work is ongoing: check what your version actually does before making it a selection criterion.
- Support. GitLab and Gitea Ltd offer paid support; Forgejo relies on its community.
Migrating from GitHub
Gitea and Forgejo have a built-in GitHub import tool: you paste the URL of a GitHub repository, public or private (with an access token), and the forge pulls the code, issues, labels and branches. Check on a trial instance what else the import carries over for your version before migrating an important repository. Your GitHub Actions workflows then serve as a starting point for CI, which makes the learning curve very short for a team used to GitHub.
GitLab also has a GitHub importer, which brings over projects, issues, milestones and labels. CI, however, has to be rewritten as .gitlab-ci.yml, since the syntax differs from GitHub Actions.
Which forge for which profile
| Profile or priority | Forge | Why |
|---|---|---|
| Solo developer, Raspberry Pi or small VPS | Gitea or Forgejo | one binary, SQLite supported, under 200 MB of RAM used; a $3/month server is enough |
| Small team (under 15 developers), tight budget | Forgejo or Gitea | code review, CI and registry at a low hardware cost, for example one machine for the forge and another for the runners |
| Community governance | Forgejo | project backed by a non-profit organisation |
| Reusing GitHub Actions workflows | Gitea or Forgejo | .github/workflows format supported, many reusable actions |
| Complex pipelines, linked groups and projects (15+ developers) | GitLab CE | includes, templates, centralised runners, built-in registry and Pages; plan on 16 GB of RAM (8 GB at the very least) and admin time |
| Professional support | GitLab or Gitea | paid support offerings; Forgejo relies on its community |
For a first Gitea install, our Gitea with Docker tutorial walks through the setup with HTTPS.
Where to host it: a mini PC at home or a VPS
Both approaches work, and our mini PC vs VPS comparison details what each one costs.
At home, a low-power mini PC runs Gitea or Forgejo 24/7 without weighing on the power bill, and can take GitLab CE if it has enough memory. The Beelink Mini S12 Pro (Intel N100, 4 cores, 6 W TDP according to its spec sheet) takes up to 16 GB of DDR4 in a single slot. The Beelink EQ14 (Intel N150) also tops out at 16 GB and adds two 2.5 GbE Ethernet ports and a built-in power supply. 16 GB just matches the 16 GB baseline in the GitLab documentation, with no room to spare, and an N100 or N150 (4 cores) is still an entry-level processor, below the 8 vCPU baseline: for heavy builds, a runner on a more powerful machine will be more comfortable. To compare other models: our guide to the best mini PCs for a homelab. Exposing a forge hosted at home requires a port forward for Git over SSH and an HTTPS certificate, served by the forge itself or by a reverse proxy.
On a VPS, there is no port forwarding or hardware to manage, and you get a public IP address from the start. For Gitea or Forgejo, a host’s smallest plan is enough; for GitLab CE, aim for a plan with at least 8 GB of RAM, ideally 16 GB. PlanetHoster offers VPS plans with root access in datacenters in France and Canada; other hosts are compared in our guide to the best VPS for self-hosting.
Frequently asked questions
Is a Raspberry Pi enough for Gitea or Forgejo?
For personal use or a small team, yes: a Raspberry Pi 4 or 5 runs the forge and its database. Keep the data on an SSD rather than the microSD card, which copes poorly with repeated writes. CI builds will be slow on that processor; put the runner elsewhere if your pipelines are heavy.
Can Gitea Actions replace GitLab CI?
For simple to medium workflows (build, test, deploy), yes. For pipelines with large artifacts, advanced conditional parallelism or fine-grained job orchestration, GitLab CI remains more complete and more stable at scale.
Key facts
Our picks
Affiliate links · same price for youPlanetHoster — Cloud VPS (self-hosted Git forge)
- VPS with root access, for Gitea, Forgejo or GitLab CE
- Datacenters in France and Canada, according to the host
- 24/7 support advertised
Beelink Mini S12 Pro (Intel N100)
- Intel N100, 4 cores / 4 threads, 6 W TDP (spec sheet)
- DDR4, 16 GB maximum in a single slot
- One M.2 PCIe 3.0 slot and one 2.5-inch SATA bay
Amazon · price and availability on the listing
Beelink EQ14 (Intel N150)
- Intel N150, 4 cores / 4 threads (manufacturer spec)
- DDR4 SO-DIMM, 16 GB maximum; 500 GB SSD included
- Two M.2 PCIe 3.0 slots, built-in power supply
Amazon · price and availability on the listing
See all our recommended gear in the shop.