selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Gitea logo

Self-host Gitea

v28.3.0

Self-hosted Git platform with CI/CD and package registries

ReleaseOpen SourceMIT
Updatedlast week
LanguageGo
Setup difficultyModerate
Stars
59 094
Ports
3000 (HTTP web interface), 22 (SSH Git access)
Docker
docker.gitea.com/gitea
Login pageRegistration pageUser dashboard homeIssues listPull requests listRepository home pageRepository commits viewPull request detail viewActions/CI/CD runs listOrganization home page

What is Gitea?

Gitea is a self-hosted Git platform written in Go that provides code hosting, code review, CI/CD compatible with GitHub Actions, and package registries for over 20 formats. It runs on Linux, macOS, Windows, FreeBSD, and Kubernetes across multiple architectures. Installation options include Docker, binary downloads, package managers, and building from source. Supported databases include SQLite, MySQL, PostgreSQL, TiDB, and Microsoft SQL Server. The web interface includes repository management, issues, pull requests, kanban boards, wikis, and an integrated actions runner. Authentication supports built-in accounts, LDAP, OAuth2/OIDC, PAM, SMTP, reverse proxy, and SPNEGO. The core project is MIT-licensed with an optional Enterprise edition adding SAML SSO and audit logs.

Gitea alternatives

Should you self-host Gitea?

Gitea scores 89/100 on selfhost.directory (how scoring works) and ranks #1 of 15 in Code Hosting. It has 59 094 GitHub stars, +649 in the last 30 days.

It shipped 17 stable releases in the past year. The latest, v28.3.0, came out on 1 November 2026. New versions land roughly every 3 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is Gogs (80/100, 47 938 stars). Gitea scores higher overall. See Gitea vs Gogs side by side.

Features

  • CI/CD (Gitea Actions)
  • Code Review
  • Container Registry
  • Git Hosting
  • Git LFS
  • Issue Tracking
  • LDAP Authentication
  • Multi-Factor Authentication
  • OAuth2/OIDC
  • Package Registry
  • Project Management
  • REST API
  • Webhooks
  • Wiki

Gitea README

Gitea

繁體中文 | 简体中文

Purpose

The goal of Gitea is to make the easiest, fastest, and most painless way of setting up a self-hosted all-in-one software development service, including Git hosting, code management, code review, issue tracking, project kanban, wiki, team collaboration, package registry and CI/CD which can reuse GitHub Actions.

How to configure Gitea

  • APP_NAMEGitea: Git with a cup of teaApp name that shows in every page title
  • RUN_MODEprodApplication run mode, affects performance and debugging

    values: dev, prod

  • HTTP_PORT3000The port to listen on for HTTP/HTTPS protocol
  • SECRET_KEY<random at every install>Global secret key for encryption
  • DISABLE_REGISTRATIONfalseDisable user registration

    values: true, false

Gitea releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Code Hosting

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…