Guides / Self-Hosted Git

How to Install & Set Up Forgejo

Install Forgejo — the community-driven, fully open source fork of Gitea — as a single binary or a Docker container.

Updated 20264-step setupDownload Forgejo →

Prerequisites

  • ✓A Linux host with modest resources

Option A — Single binary

terminal
wget -O forgejo https://codeberg.org/forgejo/forgejo/releases/download/v8.0.0/forgejo-8.0.0-linux-amd64
chmod +x forgejo
sudo mv forgejo /usr/local/bin/forgejo
forgejo web

Option B — Docker

terminal
docker run -d --name forgejo \
  -p 3000:3000 -p 222:22 \
  -v forgejo:/data \
  codeberg.org/forgejo/forgejo:8

Verify and finish setup

Open http://your-host:3000 and complete the initial configuration and admin account creation.

!

Same binary and image regardless of host distro — no RHEL-specific or Ubuntu-specific step exists for Forgejo.

Build from source

Forgejo forked its build tooling from Gitea, so compiling it yourself follows the same Make-based flow.

terminal
git clone https://codeberg.org/forgejo/forgejo.git
cd forgejo
TAGS="bindata" make build

Documentation & Knowledge Base

Official DocumentationForgejo Documentation →Knowledge Base & CommunityForgejo Discussions →
Download Forgejo— all versions & official links→

Related Guides

GiteaInstall guide →GitLab CEInstall guide →Gitea ActionsInstall guide →

Need Forgejo deployed and managed for you?

We're OpenStack Dev — we design, deploy, and operate production DevOps infrastructure.

Get in TouchAll Install Guides