Self-host Forgejo
A community-run hard fork of Gitea, stewarded by the Codeberg nonprofit. Near-identical to use, with independent, community-first governance.
Key facts
Pick Forgejo when you want Gitea's feature set under community governance: it is a hard fork stewarded by the Codeberg e.V. nonprofit, GPL-3.0-or-later since v9.0 (earlier releases were MIT), developed and released entirely on free software, and "lightweight" enough that the README puts a Raspberry Pi in scope. Forgejo Actions is enabled by default, releases are semver since 7.0, and there is an LTS line — as of September 2026, 15.0.x is the LTS (supported until 15 July 2027) and 16.0.x the current stable. Same 512 MB estimate, same single container as Gitea.
Follow the Forgejo deploy guide →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
Paid link — we earn a commission if you shop through it.
Install with Docker Compose
Save this as compose.yml and run docker compose up -d:
# Forgejo — official compose example (forgejo.org/docs → Installation with Docker)
# :16 tracks the latest release; use :15 for the LTS line (supported until 2027-07-15)
networks:
forgejo:
external: false
services:
server:
image: codeberg.org/forgejo/forgejo:16
container_name: forgejo
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- forgejo
volumes:
- ./forgejo:/data
- /etc/localtime:/etc/localtime:ro
ports:
- '3000:3000'
- '222:22'
# docker compose up -d → http://SERVER_IP:3000What you take on
Forgejo's docs are careful about versions and backups, and our snippet is behind them: