DevOps

Self-hosted GitHub alternatives

3 open-source apps you can run on your own server instead of GitHub. The install method for each one is taken from its own docs.
Short answer: self-host Gitea, Forgejo or GitLab CE instead of GitHub. The software is free to run and you pay for the server. Licenses checked 2026-10-01, install docs read 2026-11-30.
  1. 1
    Gitea

    Painless self-hosted Git service

    Lightweight self-hosted Git service with issues, PRs and Actions.

    Open source (MIT) · ★ 58k · Docker Compose

    The compose example maps port 3000 to the web UI and 222 to SSH, then setup finishes in the browser. SQLite is the default; MySQL or PostgreSQL are optional. Install docs.

  2. 2
    Forgejo

    Self-hosted lightweight software forge

    Community fork of Gitea; hosted on Codeberg, self-hosted.

    Open source (GPL-3.0-or-later) · Docker Compose

    The compose example uses the codeberg.org/forgejo/forgejo image with port 3000 for the web UI and 222 for SSH. SQLite is the default; MySQL or PostgreSQL are set with environment variables. Install docs.

  3. 3
    GitLab CE

    Free community edition of GitLab: Git hosting, CI/CD and issues

    Full DevOps platform; the free CE edition omits paid ee/ features.

    Open source (MIT (core)) · ★ 25k · Linux package

    GitLab recommends the Linux package for installs under 1,000 seats on a VM or bare metal. Docker and a Helm chart are listed for cloud-native setups. Install docs.

All free GitHub alternatives. All self-hosted alternatives.

Open source: OSI-approved license. Free to self-host: the code is public and free to run yourself, with limits in the license. The install line is left out when I have not read it on the project's own docs.

Also in this list

LaunchDarkly, GitHub Codespaces.