Forgejo provides repositories, pull requests, code review, issues, projects, wikis, releases, webhooks, CI and packages in a lightweight Go application. It powers Codeberg, a large public forge, and many private installations. Teams choose it for its features, its small footprint and its community governance, which keeps the project independent of any single company.
Forgejo and Gitea
Forgejo started as a soft fork of Gitea and became a hard fork in 2024, so the two projects now diverge in features, release schedules and internals. Forgejo is released under a copyleft licence (GPL) in recent versions, while Gitea uses MIT. Day-to-day features are similar; differences show in newer features, federation work in Forgejo, and governance. If you are migrating from Gitea, check Forgejo's documentation for which Gitea versions can be upgraded directly, since that path is limited to certain versions.
Installation
- Binary: create a
gituser, download and verify the release binary, place configuration under/etc/forgejoand data under/var/lib/forgejo, and run it with a systemd unit. - Container: use the official image with volumes for data and configuration, pinned to a version.
- Complete the web installer or write
app.iniyourself, then lock the installer.
Forgejo listens on port 3000 by default; bind it to localhost and use a reverse proxy.
Key Configuration
- Database: PostgreSQL or MySQL/MariaDB for teams; SQLite for personal use.
ROOT_URL: the public HTTPS address, so clone URLs and links are correct.- Registration disabled or approval required on private instances.
- Mailer configured through an SMTP provider.
- LFS and attachment storage on local NVMe or S3-compatible object storage.
HTTPS and SSH
Publish Forgejo through Nginx or Caddy with HTTPS, raising request body limits for large pushes and LFS uploads. For Git over SSH, use the built-in SSH server on another port or pass port 22 through to Forgejo using the system SSH server's integration, so clone URLs stay clean.
Forgejo Actions
Forgejo Actions runs workflows in a syntax familiar from GitHub Actions. Enable Actions, install Forgejo Runner on separate VPS servers, register them with labels describing their environments (Docker images or the host), and keep them isolated from the Forgejo server. Some GitHub-specific actions may not work; test your workflows. Runner servers need CPU and RAM for builds (see our CI guide).
Packages
The built-in package registry hosts container images and many package formats, with permissions from users and organisations. Set cleanup rules for old versions so storage stays under control (see our registry guide).
Migrating Repositories
Forgejo can migrate repositories from GitHub, GitLab, Gitea and others, including issues, pull requests, labels and releases where supported. Migrate a few repositories first, check that history, issues and permissions came across correctly, then plan the rest. Push mirrors can keep a copy on another platform during the transition.
Backups
The forgejo dump command creates an archive of repositories, database and configuration. For larger installations, back up the data directory and database with consistent snapshots or your usual tools. Keep backups off-site with several generations and test restoring to a new server.
Upgrades
Forgejo publishes stable releases and long-term support releases. Read release notes and breaking changes, take a backup, replace the binary or image and restart; migrations run automatically. Choose LTS releases if you prefer fewer upgrades.
Security
- HTTPS only, registration disabled on private instances, two-factor for admins.
- Single sign-on through OAuth2/OpenID Connect or LDAP for teams.
- Branch protection with required reviews and status checks.
- Prompt security updates, which the project announces with releases.
- Runners isolated from the Forgejo server and from production secrets.
Monitoring
Forgejo can expose Prometheus metrics. Watch response times, background queue lengths, disk usage for repositories, LFS and packages, and backup success. Alert on certificate expiry and low disk.
Sizing
| Setup | Suggested plan |
|---|---|
| Small team or organisation | 2 vCores / 8 GB |
| Many users, packages and LFS | 4 vCores / 16 GB with ample NVMe |
| Forgejo Runner servers | Separate 4–8 vCore servers |
Forgejo or Gitea?
Both are good lightweight forges. Choose Forgejo if community governance and its licence matter to you or you want its newer features; choose Gitea if you prefer its ecosystem or commercial support options (see our Gitea guide). For the broader decision between Git hosting options, see our Git servers guide.
Example: An Open-Source Collective
A collective of open-source developers runs Forgejo with PostgreSQL on a 2 vCore / 8 GB VPS, with LFS storage in object storage. Two Forgejo Runner servers build and test pull requests, contributors sign in with two-factor authentication, release artifacts are published as packages, and nightly forgejo dump archives go to a separate storage provider.
Common Mistakes
- Assuming any Gitea version can be upgraded directly to Forgejo.
- Runners on the same server as Forgejo.
- Open registration on a private instance.
- No cleanup rules for packages.
- Untested backups.
In Short
Forgejo is a lightweight, community-governed forge. Install it with a proper database behind HTTPS, configure SSH, lock down registration, run Actions on separate runners, back up regularly and upgrade following the release notes.
Federation and the Wider Community
Forgejo's developers are working on federation, so that users on different Forgejo instances can follow, star and eventually collaborate across servers. Federation features are being added gradually; check the release notes for what is currently available before relying on them.
SkyRainCloud Plans for This Workload
Forgejo is light: 2 vCores / 8 GB serves most teams. Run Forgejo Runner on separate VPS servers sized for your builds, and add disk for packages and LFS.
AMD EPYC 7C13 VPS
Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
Intel Xeon Platinum 8269CY VPS
KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.