How much RAM does Gitea need?
Lightweight self-hosted Git service with code review, issues and CI. Official requirements, sourced, plus our own measurements.
Last updated: 2026-11-01
Pinned version: Gitea 28.2.0 (docker.gitea.com/gitea:28.2.0@sha256:30777c91280d)
Our measurement
98 MB idle RAM · 251 MB disk (images 249 + data 2) · gitea 98 MB (single container, SQLite)
Official basic docker-compose.yml from the Gitea Docker docs (SQLite) with the image tag pinned to 28.2.0 by digest. The install wizard was submitted with all default values plus one admin account; no repositories.
Method: Official compose file with the image tag replaced by an exact version+digest (never latest). Measured after a 5-minute settle as docker stats MEM USAGE, 3 samples 20 s apart (median). Disk = pulled image size + bind-mounted data directory after setup.
Host: 8 vCPU Intel Xeon VM, 16 GB RAM, Debian 13 (kernel 6.12), Docker 29.9.2 + Compose 5.6.1
Version: Gitea 28.2.0 (docker.gitea.com/gitea:28.2.0@sha256:30777c91280d) · Compose: source · Date: 2026-11-01
With sample data
200 MB idle RAM · 268 MB disk · gitea 250 MB peak, 200 MB settled (single container)
Peak RAM during processing: 250 MB
Sample: One repository created through the API, then a full mirror of the public psf/requests Git repository (6,737 commits, 15 MB) pushed over HTTP, 10 issues created, and 15 pages browsed 3 times each (files, blame, commits, graph, code search, compare, zip download), followed by a full clone.
Peak RAM during the push and browsing was 250 MB. Five minutes later RAM had settled at 200 MB, higher than the empty install because of caches. Disk was about 268 MB (image 249 + data 19).
Method: Same official setup and host as the idle measurement. Peak RAM sampled about every 2 seconds (docker stats) for 4 minutes from just before the repository was created. Settled RAM = 3 samples 20 s apart, 5 minutes after that.
Version: Gitea 28.2.0 (docker.gitea.com/gitea:28.2.0) · Date: 2026-11-01
Compare
What the official docs say
- The official docs say 2 CPU cores and 1 GB RAM is typically sufficient for small teams or projects, and that a Raspberry Pi 3 is powerful enough for small workloads. No hard minimum is stated.
- Git 2.0.0 or later is required (the Docker image already includes it).
- Runs on Linux, macOS, FreeBSD/OpenBSD and Windows, on x86, amd64, ARM, RISC-V 64 and PowerPC; downloads include linux-amd64 and arm64 builds.
- Supported databases: SQLite (built in, the Docker default), PostgreSQL 12+, MySQL 8.0+, MariaDB 10.4+ and MSSQL 2012 SP4+. The docs warn that SQLite does not scale, so pick another database if you expect the instance to grow.
Fits a 4GB server?
yesMeasured 98 MB idle RAM after setup, and 250 MB peak while pushing a 6,737-commit repository and browsing it. The docs call 1 GB RAM typically sufficient for small teams. Easily fits 4 GB.
Sources
- Gitea docs: What is Gitea? (System Requirements) checked 2026-11-01
- Gitea README (GitHub) checked 2026-11-01
- Gitea docs: Installation with Docker checked 2026-11-01
- Gitea docs: Database Preparation checked 2026-11-01
- Gitea docs: Installation from binary checked 2026-11-01
- Gitea 28.2.0 release checked 2026-11-01