Open source API development ecosystem - fast, lightweight, and offline-capable
Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
Recommended VPS & Hardware Sizing
Estimated Hosting: $4 - $6/mo (e.g. Hetzner CX22 or DigitalOcean)Gitea vs GitHub Enterprise / GitLab SaaS Comparison Matrix
| Evaluation Criteria | Gitea (Open Source) | GitHub Enterprise / GitLab SaaS (Proprietary) |
|---|---|---|
| Per-Seat Pricing | $0 per developer; unlimited internal users | $21/user/mo (GitHub Enterprise) |
| Storage & Artifacts | Host on private NVMe or S3/MinIO bucket | Strict $0.25/GB/mo cloud storage overage |
| Source Code Control | Strict internal air-gapped sovereign deployment | Hosted on third-party multi-tenant cloud |
| CI/CD Minutes | Unlimited build execution on self-hosted runners | 3,000 pooled minutes then billed per min |
Financial Impact: Migrating from GitHub Enterprise / GitLab SaaS to Self-Hosted Gitea
* Excludes enterprise SSO add-ons & usage overages
* Commodity Hetzner / DigitalOcean compute instance
Compare Gitea Head-to-Head
Core Capabilities & Features
Self-Host Gitea with Docker Compose
Tweak configuration ports, secrets, and volumes live. Download or copy your ready-to-run container file:
1-Click Docker Compose Generator
Generate production-ready container definitions with customizable ports and volumes.
Painless self-hosted Git service written in Go with built-in CI/CD actions and package registry
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=${DB_PASSWORD:-gitea_secret_pwd}
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "${HTTP_PORT:-3000}:3000"
- "${SSH_PORT:-2222}:22"
depends_on:
- db
db:
image: postgres:14
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=${DB_PASSWORD:-gitea_secret_pwd}
- POSTGRES_DB=gitea
networks:
- gitea
volumes:
- ./postgres:/var/lib/postgresql/dataFrequently Asked Questions: Self-Hosting Gitea
How do I self-host Gitea using Docker Compose?
You can deploy Gitea (go-gitea/gitea) on any Linux server by copying the docker-compose.yml template on this page, configuring your desired host port and persistent volume directory, and running 'docker compose up -d'.
How does Gitea compare to GitHub Enterprise / GitLab SaaS?
Gitea is an open-source, self-hosted alternative to GitHub Enterprise / GitLab SaaS built with Go, Vue.js, PostgreSQL / SQLite. Unlike GitHub Enterprise / GitLab SaaS ($21 - $29 / user / month), Gitea has zero per-user licensing fees and keeps 100% of your data on your own infrastructure.
What are the minimum VPS RAM and CPU requirements for Gitea?
For production self-hosting (Easy difficulty tier), we recommend at least 2 GB RAM (minimum 1 GB), 1 vCPU, and 10 GB SSD storage, which typically costs $4 - $6/mo (e.g. Hetzner CX22 or DigitalOcean).
Is Gitea free for commercial business use under the MIT license?
Yes. Distributed under the MIT license, Gitea can be self-hosted internally by businesses and engineering teams of any size without per-seat royalties.
Embed Official Gitea Badge in GitHub README
Served locally from OSSMatrix with Cloudflare global edge caching. Real-time verified alternative status, zero third-party dependencies, sub-5ms load time.
[](https://ossmatrix.com/project/gitea)<a href="https://ossmatrix.com/project/gitea" target="_blank" rel="noopener noreferrer"><img src="https://ossmatrix.com/api/badge/gitea" alt="Gitea on OSSMatrix" /></a>Compare Gitea with Other Self-Hosted Alternatives
Lightning-fast, ultra-relevant search engine for apps, websites, and e-commerce
Making Docker and Kubernetes management easy with a powerful visual web dashboard
A privacy-respecting, open metasearch engine that aggregates results from 70+ search engines
Fast, typo-tolerant in-memory search engine built for developer happiness
Provision remote development environments on your own infrastructure with Terraform