Skip to content

Self-host Gitea

updated Jul 2026prices 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

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

An alternative to

Head-to-head

More in Code hosting

We use analytics cookies (Google Analytics, PostHog) to see which guides are useful. No ad networks, no cross-site tracking. See our privacy policy.