Skip to content

Self-host Forgejo

updated Jul 2026prices checked · Aug 2026Install verified on Ubuntu 26.04 · Jul 2026 · how we test

A community-run hard fork of Gitea, stewarded by the Codeberg nonprofit. Near-identical to use, with independent, community-first governance.

Key facts

CategoryCode hosting
LicenseMIT
StackGo
Min RAM512 MB
Dockeryes
Difficulty

What you need

  • Any VPS with at least 512 MB of RAM
  • A domain you control — most self-hosted setups need HTTPS in front of them
  • Under an hour if you've used Docker before

Install with Docker Compose

Save this as compose.yml and run docker compose up -d:

# Forgejo
services:
  forgejo:
    image: codeberg.org/forgejo/forgejo:7
    ports: ["3000:3000", "222:22"]
    volumes: ["./data:/data"]
# docker compose up -d  →  http://SERVER_IP:3000

An alternative to

Head-to-head

More in Code hosting

We use analytics cookies (Google Analytics, PostHog) to see which guides are useful. No ad networks, no cross-site tracking. See our privacy policy.