What is Forgejo?
A team forge is the classic self-host win: code is the asset you least want metered or mined, and a Go binary serves it from a gigabyte of RAM. Forgejo is the community-governed hard fork of Gitea - run by the non-profit Codeberg e.V., GPL-licensed, monthly security releases - with everything a small forge needs: repos, issues, PRs, packages, and GitHub-Actions-compatible CI via Forgejo Actions.
This template runs Forgejo on a managed Postgres with repos on a 10 GB volume. It deliberately ships HTTPS-first: git clone over https with tokens covers the full workflow on an HTTP-first platform, and SSH can be enabled over a custom TCP port if you want it.
Why Forgejo over Gitea? Governance: Gitea’s trademark moved to a for-profit in 2022; Forgejo answered with a non-profit home and an independent release train. Same lineage, community steering wheel - the safer two-decade bet for where your code lives.
What you get
- Repos, issues, pull requests, wikis, releases - the full forge
- Forgejo Actions: GitHub-Actions-compatible workflow CI
- Package registry: npm, container images, Maven, PyPI, and more
- Light: a Go binary at 1 GiB serves whole teams
- Managed Postgres auto-provisioned and auto-wired; repos on a volume
- HTTPS-first git; optional SSH via custom TCP port
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
forgejo | web UI + git over HTTPS (:5000) | yes |
db | Postgres - managed service on Lyngbak, container locally | no |
Before you deploy
ROOT_URLset to the app’s https domain (trailing slash) after first deploy - clone URLs embed it
Sizing and billing
1 GiB runs a team forge comfortably. CI runners are the real resource consumers - register Forgejo Actions runners as separate apps sized to your build load.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 14.77 GiB of volumes cost $0.15 per GiB a month ($2.22/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| GitHub | Team | $40/mo | $4/user/mo at 10 users (first-12-months rate); CI minutes metered beyond 3,000/mo |
| GitLab | Premium | $290/mo | $29/user/mo at 10 users, billed annually |
For private team forges the per-seat math compounds; Forgejo has no seat fee, with unlimited repos, users, and Actions minutes bounded only by your compute. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Forgejo or Gitea - which should I deploy?
They remain very similar technically; the difference is governance. Forgejo lives under the non-profit Codeberg e.V. with GPL licensing and an independent release cadence, after Gitea’s trademark moved to a for-profit. For infrastructure you intend to keep for years, the community-governed fork is the conservative choice - and the env config maps 1:1 if you ever switch.
How does this compare to GitHub Team or GitLab Premium?
GitHub Team prices per user with metered CI minutes, and GitLab Premium prices per user too, so the bill grows with headcount. This stack has no per-seat fee: unlimited repos and users, and Actions minutes bounded only by your runners.
Can I run CI on it?
Yes - Forgejo Actions speaks the GitHub Actions workflow format, so most existing workflows port over. Deploy runner(s) as separate apps in the project and register them against your forge; size them to your build load, not the forge.
How do I clone without SSH?
git clone https://your-domain/org/repo with a personal access token works everywhere and is the default here. Want SSH anyway? Add a custom TCP port on the app, enable SSH in the env, and set SSH_PORT to the public port so clone URLs come out right.