Why people self-host Forgejo
Forgejo is a community-led Git forge that keeps repository hosting, issues, pull requests, and packages lightweight. It is a good fit for teams that want independence from commercial forge strategy.
The tradeoff is fewer enterprise features than GitLab. Back up repositories, database, attachments, and SSH host keys together.
What Forgejo does well
- Git hosting with pull requests, code review, issues, wikis, and project boards.
- Forgejo Actions for CI, using workflow files that look very close to GitHub Actions.
- Package and container registries built in.
- Run by a non-profit under the Codeberg umbrella, with federation between instances in development.
Who Forgejo is for
Forgejo suits individuals, open-source projects, and small teams who want a self-hosted GitHub alternative that is governed by its community rather than a company. It is what Codeberg runs. If you need epics, security scanning dashboards, or the rest of the enterprise planning layer, GitLab is still the comparison to make.
Deployment notes
Forgejo is listed with support signals for linux, docker. Check the upstream documentation before exposing it to the internet, review authentication defaults, and keep backups outside the primary host.
It is a single Go binary or a Docker image. SQLite is enough for personal use, and PostgreSQL or MySQL makes sense for teams. A 1 GB VPS handles a small instance. CI needs a separate Forgejo Runner, preferably on another machine since it executes whatever your workflows tell it to. Back up the repositories directory, the database, and app.ini as one set.
Common questions about Forgejo
What is the difference between Forgejo and Gitea?
Forgejo forked from Gitea in 2022 after a company took over Gitea's trademark and domains. The two have since drifted apart in code and governance. Day to day they still feel similar.
Can I migrate from Gitea to Forgejo?
Directly only from older Gitea releases, up to 1.22. Newer Gitea versions are no longer upgrade-compatible, so you would migrate repositories through the migration tool or the API instead.
Other self-hosted code hosting apps
- Gitea: Compact Git service for repos, issues, pull requests, and packages.
- GitLab CE: Complete DevSecOps platform with Git hosting, CI, registry, and planning.
Compare them side by side in the code hosting category.