Gitea logo

Gitea

✓ Verified FOSSMIT
Top open-source alternative to GitHub Enterprise / GitLab SaaS

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

Tech StackGo, Vue.js, PostgreSQL / SQLite
Self-Host DifficultyEasy
License ModelMIT
GitHub Repositorygo-gitea/gitea

Recommended VPS & Hardware Sizing

Estimated Hosting: $4 - $6/mo (e.g. Hetzner CX22 or DigitalOcean)
Min RAM:1 GB
Rec RAM:2 GB
Compute:1 vCPU
Disk Space:10 GB SSD

Gitea vs GitHub Enterprise / GitLab SaaS Comparison Matrix

Evaluation CriteriaGitea (Open Source)GitHub Enterprise / GitLab SaaS (Proprietary)
Per-Seat Pricing$0 per developer; unlimited internal users$21/user/mo (GitHub Enterprise)
Storage & ArtifactsHost on private NVMe or S3/MinIO bucketStrict $0.25/GB/mo cloud storage overage
Source Code ControlStrict internal air-gapped sovereign deploymentHosted on third-party multi-tenant cloud
CI/CD MinutesUnlimited build execution on self-hosted runners3,000 pooled minutes then billed per min
INTERACTIVE TCO MODELEstimated Rate: $25/user/mo

Financial Impact: Migrating from GitHub Enterprise / GitLab SaaS to Self-Hosted Gitea

Detailed Stack Calculator →
5 Users (Early Startup)50 Users (Scaleup)200 Users (Enterprise Org)
GitHub Enterprise / GitLab SaaS (Cloud SaaS)Per-Seat Tax
$7,500per year ($625/mo)
3-Year Spend:$22,500

* Excludes enterprise SSO add-ons & usage overages

Gitea (Self-Hosted)Zero Per-Seat Fee
$120per year ($10/mo Linux VPS)
3-Year Compute:$360

* Commodity Hetzner / DigitalOcean compute instance

Cumulative 3-Year ROI+$22,140Net savings across 36 months (98% reduction)
Annual Free Cash:+$7,380/yr
Need C-Level Buy-In? Generate an instant ROI proposal memo to present to your CTO or CFO.

Core Capabilities & Features

✓Native GitHub Actions compatible CI/CD runner support
✓Built-in Container and Package Registry (npm, PyPI, Maven, Docker)
✓Ultra-low RAM consumption (<100MB idle vs GitLab 4GB+)
✓Rich Pull Request reviews with side-by-side diffs
✓Two-Factor Authentication (TOTP, WebAuthn/FIDO2)
✓LDAP, OAuth2, and SAML Single Sign-On integration

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.

GiteaMIT

Painless self-hosted Git service written in Go with built-in CI/CD actions and package registry

Difficulty: Easy58,455 ⭐
Configure Parameters
docker-compose.gitea.yml
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/data

Frequently 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.

README INTEGRATION // REPO EMBED

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.

Live Preview:Gitea Badge
Markdown Embed (GitHub / GitLab)
[![OSSMatrix Alternative](https://ossmatrix.com/api/badge/gitea)](https://ossmatrix.com/project/gitea)
HTML Embed (Docs / Landing Pages)
<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>
SIMILAR REPOSITORIES // PEER COMPARISON

Compare Gitea with Other Self-Hosted Alternatives

All GitHub Enterprise / GitLab SaaS Alternatives →