Self-host Gitea
updated Jul 2026deployed & timed by usprices checked · Aug 2026Install verified on Ubuntu 26.04 · Jul 2026 · how we test
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
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:3000deploy guideHow to Deploy Gitea on a VPSvps picksBest VPS for Giteabenchmarked quarterly · re-priced monthly
An alternative to
Head-to-head
More in Code hosting
Code hosting
Forgejo
Go
easyRead guide →
Code hosting
GitBucket
Scala
easyRead guide →
Code hosting
GitLab CE
RubyGoPostgreSQL
hardRead guide →
Code hosting
Gogs
Go
easyRead guide →