Self-host Gitea
A lightweight, self-hosted Git service with pull requests, issues, and a CI runner — a fast GitHub alternative that runs comfortably on a small box.
Key facts
Pick Gitea when you want repositories, pull requests, issues, a wiki, kanban, a package registry and GitHub-Actions-compatible CI from one MIT-licensed Go binary: the docs call Gitea Actions "stable enough for production usage" and use it for every repository in the gitea organisation on gitea.com. The simplest install is our SQLite single container; MySQL and PostgreSQL are a compose change. Its one strategic question is governance — the community fork Forgejo exists because, in its account, Gitea's domains and trademark were transferred to a for-profit company in 2022, and the two are not interchangeable once you have data.
Follow the Gitea 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:
# Gitea (SQLite — simplest single-container setup)
services:
gitea:
image: gitea/gitea:1
ports: ["3000:3000", "222:22"]
volumes: ["./data:/data"]
# docker compose up -d → http://SERVER_IP:3000What you take on
Gitea is one of the easiest forges to run; the things that bite are upgrades and the runner: