PROVIDER - Lightweight self-hosted Git service
Gitea
Gitea is the Go-based lightweight self-hosted Git platform whose single binary delivers repositories, issues, pull requests, a package registry, and GitHub Actions-compatible CI for intranets and small teams.
Service Overview
Gitea forked from Gogs in 2016 and is written in Go, packaging Git hosting with issues, pull requests, package registry, and CI into a single binary for self-hosting. Compared with GitLab it cuts resource use to a minimum, running comfortably on a two-core, two-gigabyte server.
For Developer Tools work the value is data staying on your own machines with almost no operations burden, since intranet deployment keeps code in-house and backup is a directory copy, Gitea Actions accepts most GitHub Actions syntax for cheap pipeline migration, and the Chinese interface is complete.
The boundary is enterprise capability, because code scanning, compliance auditing, and fine-grained permission matrices trail GitLab, very large repositories and high concurrency need tuning, and some SSO plus approval workflows are enterprise-only with community compromises.
Key Strengths
- Single-binary deployment runs small teams on two cores and two gigabytes
- Gitea Actions accepts GitHub Actions syntax for low-cost pipeline migration
- Supports MySQL, PostgreSQL, and SQLite backends
- MIT open source keeps code, issues, and artefacts on your own servers
Product Ecosystem
Hosting and collaboration
Repositories, issues, pull requests, reviews, wikis, and milestones in a GitHub-like interface.
Gitea Actions
Built-in runners accept GitHub Actions workflow syntax so existing YAML carries over.
Packages and artefacts
Registries for npm, Maven, NuGet, Composer, and container images.
Limitations
- Enterprise features such as fine-grained SSO, auditing, and approvals trail GitLab with some paid
- Very large repositories and high-concurrency clones need tuning
- Built-in scanning and security analysis are limited, requiring external tools
- Fewer plugins and integrations than GitLab or GitHub
Use Cases
- Intranet and private code hosting (★★★★★) - Single binary with low resource use
- GitHub replacement for small teams (★★★★) - Covers daily collaboration
- Companies with data residency rules (★★★★) - Code never leaves the intranet
- Very large monorepos (★★) - Prefer GitLab or Perforce
Pricing
| Plan | Price | Scope |
|---|---|---|
| Community | $0 | MIT licensed with daily collaboration features |
| Enterprise | Per node or seat subscription | SSO, auditing, and vendor support |
| Third-party hosted | Monthly per instance | Managed with backups |
The community edition is free with cost limited to a server and backups, typically a few hundred dollars a year for a two-core four-gigabyte instance, which beats per-seat GitHub Team pricing as teams grow.
FAQ
-
Gitea or GitLab? Gitea for lightweight, low-resource intranet hosting, GitLab CE or EE for complete CI, security scanning, and compliance auditing.
-
Can repositories migrate from GitHub? One-click migration brings repositories, issues, and PR metadata via OAuth or token, though complex Actions need item-by-item validation.
-
Does it suit larger teams? Dozens of people work well, provided the database and repository directories are backed up regularly and object storage holds large attachments.
Code Examples
Minimal example: run an instance in a container
# Check the official docs for the current image tag
mkdir -p "$PWD/gitea-data"
docker run -d --name gitea \
-p 3000:3000 -p 2222:22 \
-v "$PWD/gitea-data:/data" \
-e USER_UID=1000 -e USER_GID=1000 \
-e "GITEA__database__PASSWD=$DB_PASSWORD" \
--restart unless-stopped \
gitea/gitea:1
docker logs --tail 20 gitea
With the data directory mounted, upgrades are a tag swap: repositories, config, and attachments move together without a separate database export.
Signature capability: built-in Actions pipelines
# .gitea/workflows/ci.yml
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci && npm test
Gitea Actions accepts GitHub Actions syntax where runs-on matches a registered runner label, and private repositories can run entirely in-house.
Community & Resources
Communities and official channels
- Gitea website — Hosting entry point and project navigation.
- Official documentation — Installation, configuration, upgrades, and Actions.
- tea CLI — Manage repositories, issues, and pull requests from a terminal.
- Official Discord — Live discussion on operations and integrations.
Learning resources and tools
- Main repository — Source code, issues, and release history.
- Actions overview — Runner registration, permissions, and compatibility.
- Docker install guide — Persistent directories and upgrade steps.
Articles
- 01 GitLab CI/CD Pipeline Practices 07-18
- 02 Prometheus Monitoring and Alert Setup 07-18
- 03 Choosing Free Fonts for Commercial Use 11-25
- 04 BaaS Platform Selection and Migration Scope 11-29
- 05 What Ansible Automation Really Costs 07-18
- 06 Migrating Spring Boot 4 to Native Image 11-29
- 07 Backend Language Selection and Runtime Boundaries 11-29
- 08 Docker Basics: Install and Run Containers 07-18
- 09 Django, FastAPI, or Flask for a Python Web Project 11-29
- 10 Choosing a Node.js Backend Framework 11-29