VPS Provider

Forgejo vs Gitea: which one to run on your own server

Published

Forgejo and Gitea are two lightweight self-hosted Git servers with the same roots: Forgejo started as a fork of Gitea in 2022, and since early 2024 the two are separate code bases. Choose Forgejo if you want a project run by a non-profit under a copyleft licence, and Gitea if you want the MIT licence with a company behind it that sells an Enterprise edition; either runs for a small team on a VPS with 1 vCPU and 2 GB, which costs $6.67 a month on our price list.

The facts about both projects come from their own documentation and release pages as we read them on 29 November 2026. Our prices are from our price list on the same day, per month and without tax.

Who runs each project

Forgejo's comparison page says it was created in October 2022 after a for-profit company took over the Gitea project, and that it became a hard fork in early 2024. Forgejo sits under Codeberg e.V., a non-profit association. Gitea is developed with a company behind it that sells an Enterprise edition.

ForgejoGitea
LicenceGPL v3 or later from v9.0 (MIT up to v8.0)MIT
Latest releasev17.0.2, 18 November 202628.4.0, 15 November 2026
Long-term supportv15 LTS, supported until 15 July 2027Not stated on the pages we read
Docker imagecodeberg.org/forgejo/forgejo:17docker.gitea.com/gitea:28.4.0
CIForgejo Actions with a separate Forgejo RunnerGitea Actions with a separate Gitea Runner
Paid editionNoneGitea Enterprise, priced per user

Forgejo ships a stable release every quarter and one long-term support release a year. Its comparison page adds two differences it cares about: advance notice of security releases goes to everyone, and Forgejo is working on federation between forges, which it says Gitea is not.

Moving from Gitea to Forgejo

This is where the hard fork shows. Forgejo's upgrade guide supports Gitea up to version 1.22 included, in two steps: first to Forgejo v10.0, then to any later Forgejo. It names no path from newer Gitea releases. If you run Gitea today and might switch, decide before you upgrade past 1.22; if you are starting fresh, the choice is free and neither database will move to the other later without work.

How big a server they need

Neither project publishes a minimum size. Both use SQLite by default, so a small instance is light; memory goes up with users, the database and above all CI jobs. These sizes are our suggestion.

UseServerPer month
A few people, SQLite, no CI on the serverVPS, 1 vCPU, 2 GB, 40 GB NVMe$6.67
A team, PostgreSQL and one runnerVPS, 2 vCPU, 4 GB, 80 GB NVMe$13.34
Runners that build containersDedicated Core i3-1315U, 8 threads, 16 GB, 256 GB NVMe$39

The vCPUs of our VPS are shared, so builds that use every core for minutes at a time belong on a dedicated server. The runner can sit on that machine while Forgejo or Gitea stays on a small VPS. For comparison, GitLab asks for 8 vCPU and 16 GB as its baseline for one server.

Run it with Docker Compose

Both guides use almost the same file, with the web interface on 3000 and git over SSH on 222. This one is for Forgejo; for Gitea, change the image to docker.gitea.com/gitea:28.4.0 and the folder name.

services:
  forgejo:
    image: codeberg.org/forgejo/forgejo:17
    container_name: forgejo
    restart: always
    environment:
      - USER_UID=1000
      - USER_GID=1000
    volumes:
      - ./forgejo:/data
    ports:
      - '127.0.0.1:3000:3000'
      - '222:22'

Pin a version and back up before each major upgrade: Forgejo's guide says that going from one major version to the next needs a manual step and a check.

Docker opens ports past ufw

Our servers start with a firewall that has only SSH open. Docker routes traffic to published ports before ufw's rules apply, so a plain '3000:3000' would put the web interface on the internet over HTTP whatever ufw says. Binding it to 127.0.0.1, as above, keeps it on the server; put a reverse proxy with HTTPS on 443 in front of it. Port 222 stays public on purpose, because that is where your team pushes over SSH.

The SSH port in clone addresses

Your server's own SSH keeps port 22, so git over SSH uses 222. Set SSH_PORT to 222 in the [server] section of app.ini, or the clone addresses shown in the interface will say port 22.

What it costs

Forgejo and the open-source Gitea are free, with no limit on users. You pay for the server: $6.67 a month for a small team on a VPS, $13.34 with PostgreSQL and a runner, and $39 for a dedicated server that also builds, with no setup fee, 5% less on 3 months and 10% less on 6 months. Gitea Enterprise is a paid plan per user; Forgejo has none.

Questions

What is the difference between Forgejo and Gitea?

Forgejo is a fork of Gitea, created in 2022 and a hard fork since early 2024. Forgejo is run under the non-profit Codeberg e.V. and licensed GPL v3 or later from v9.0; Gitea is MIT-licensed and has a company behind it selling an Enterprise edition.

Can I migrate from Gitea to Forgejo?

Forgejo's upgrade guide supports Gitea up to version 1.22 included: upgrade to Forgejo v10.0 first, then to any later Forgejo. It names no path from newer Gitea releases.

Gitea vs GitLab: which needs a bigger server?

GitLab gives 8 vCPU and 16 GB as its baseline for one server. Gitea and Forgejo publish no minimum and run on SQLite by default, so a small team can start on a VPS with 1 vCPU and 2 GB, $6.67 a month on our price list.

Sources, read on 29 November 2026: Forgejo: comparison with Gitea, Forgejo FAQ, Forgejo with Docker, Forgejo upgrade guide, Forgejo releases, Gitea with Docker, Gitea releases, Gitea pricing, Docker and ufw.

Written and checked by the VPS Provider team.