Your own Git server: GitLab, Gitea or Forgejo
Gitea and Forgejo run on a VPS costing a few hundred roubles, while GitLab asks for 8–16 times more memory. We go through the developers' requirements, what to pick for your team size and what it costs.
The short answer. A small team is fine with Gitea or Forgejo on a VPS with 2 cores and 1–2 GB of memory: catalog medians are $9.98 and $16.23 a month. Full GitLab asks for 8 vCPU and 16 GB (median $84.40), and its trimmed mode for 5 people for 2.5 GB of memory plus swap, which in practice means a 4 GB VPS (median $23.66).
Gitea and Forgejo: the light option
Gitea is a single executable with a web interface, issues, pull requests and its own CI (Gitea Actions). The Gitea documentation says 2 CPU cores and 1 GB of memory is typically enough for small teams and projects, and even a Raspberry Pi 3 handles small workloads; Git 2.0.0 or later is required. Forgejo is a fork of Gitea built the same way. A KVM VPS with 2 cores and 1 GB: 234 plans, median $9.98; with 2 cores and 2 GB: 1,987 plans, median $16.23. Take 2 GB if PostgreSQL or MySQL and an Actions runner live on the same server.
GitLab: what it really asks for
GitLab's installation requirements give 8 vCPU and 16 GB of memory as the baseline for a single-node install, and at least 8 GB in memory-constrained environments; GitLab advises disabling swap or giving enough memory that it is never used. A separate guide for low-memory servers targets 5 developers with repositories under 100 MB: at least 2 GB of memory and 1 GB of swap, optimally 2.5 GB and 1 GB of swap, with some services switched off. KVM VPS prices: 4 GB — median $23.66, 8 GB — $45.10, 16 GB with 8+ cores — $84.40. The VPS for GitLab selection (4+ cores and 8 GB) has 19,593 plans, starting at $34.97.
Disk, runners and backups
GitLab asks for 40 GB for the application itself, at least the total size of all repositories, and 5–12 GB for the PostgreSQL database. With Gitea the space goes mostly to repositories and LFS files. CI builds on the same server take memory and CPU from the Git server itself, so runners usually move to a separate VPS — see CI/CD on your own VPS. Both servers are easy to run in Docker, which needs KVM virtualization (Docker on a VPS). The repositories hold the whole team's code: set up copies off the server (VPS backups) and turn off password logins (first steps to secure a VPS).
What to choose
- Code, issues and reviews for a small team — Gitea or Forgejo, 2 cores and 1–2 GB.
- It has to be GitLab and the team is up to 5 people — the low-memory mode on 4 GB, with swap.
- More than 5 people, GitLab CI and a container registry on the same server — at least 8 GB; GitLab's baseline is 8 vCPU and 16 GB.