Self-host Forgejo
Code hostingdeployed & timed by usprices checked · Jul 2026
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