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