Forgejo, Gitea or GitLab: which one fits?
Choose Forgejo or Gitea when you want Git hosting, issues and pull requests on minimal resources, and GitLab CE when you want a complete platform with built-in CI, registry and planning tools. Forgejo and Gitea are single Go binaries that idle at a couple of hundred MB of RAM. GitLab bundles PostgreSQL, Redis, Puma, Sidekiq, Gitaly and more, which is why it needs at least 4 GB just to run.
- Solo developer or small group: Forgejo or Gitea on A1-1 or I1-2.
- Team that wants Actions-style CI: Forgejo with a separate runner, see CI runners.
- Team already living in GitLab: the GitLab CE image on A2-4 or A4-8.
How much does GitLab really need?
Four GB of RAM is the floor, and 8 GB is where it feels responsive for a team. On A2-4 with 2 vCPU, 4 GB RAM, 100 GB NVMe, GitLab runs for a handful of users if you trim it. In /etc/gitlab/gitlab.rb:
external_url 'https://git.example.com'
puma['worker_processes'] = 2
sidekiq['concurrency'] = 10
prometheus_monitoring['enable'] = falseApply with gitlab-ctl reconfigure. Turning off the bundled monitoring stack alone frees several hundred MB. Add a 2 GB swap file as a safety net. When more than five or so people use it every day, or you run the registry and pipelines from the same box, move to A4-8 with 4 vCPU, 8 GB RAM, 180 GB NVMe.
Plans for this workload
Smallest first, at the base city price. Order totals are the shortest prepaid term that reaches $40.
| Plan | Why | Size | Monthly | Order from |
|---|---|---|---|---|
| A1-1 | Forgejo or Gitea for one person or a small group | 1 vCPU, 1 GB RAM, 25 GB NVMe | $3.60/mo | $43.20 for 12 months |
| I1-2 | Forgejo with room for LFS, sold in every city | 1 vCPU, 2 GB RAM, 50 GB NVMe | $7.20/mo | $43.20 for 6 months |
| A2-4 | GitLab CE for a few users, trimmed config | 2 vCPU, 4 GB RAM, 100 GB NVMe | $14.40/mo | $43.20 for 3 months |
| A4-8 | GitLab CE for a team with registry and pipelines | 4 vCPU, 8 GB RAM, 180 GB NVMe | $28.80/mo | $86.40 for 3 months |
How do you install Forgejo on a small plan?
Download the binary, create a git user, and run it under systemd with SQLite. On Debian 12:
adduser --system --group --shell /bin/bash --home /home/git git
mkdir -p /var/lib/forgejo /etc/forgejo
chown git:git /var/lib/forgejo /etc/forgejo
wget -O /usr/local/bin/forgejo https://codeberg.org/forgejo/forgejo/releases/download/v<version>/forgejo-<version>-linux-amd64
chmod 755 /usr/local/bin/forgejo
# /etc/systemd/system/forgejo.service
[Service]
User=git
WorkingDirectory=/var/lib/forgejo
ExecStart=/usr/local/bin/forgejo web --config /etc/forgejo/app.ini
Restart=always
Environment=HOME=/home/gitStart it with systemctl enable --now forgejo, put Caddy in front on port 443 (reverse_proxy 127.0.0.1:3000), and finish the install form in the browser. SQLite is fine for small teams; switch to PostgreSQL if you grow past a few dozen active users. Gitea installs the same way with its own binary.
How do you handle SSH access for Git?
Let users push over the system SSH server as the git user, with keys managed by the Git application. Forgejo, Gitea and GitLab all write an authorized_keys file that points each key at the application, so you keep a single sshd on port 22. Keep your own admin login on a separate user, and disable password authentication for everyone:
# /etc/ssh/sshd_config.d/10-hardening.conf
PasswordAuthentication no
PermitRootLogin prohibit-passwordReload with systemctl reload ssh. If you prefer, Forgejo can run its own built-in SSH server on another port, such as 2222, and leave port 22 for administration only.
How much disk and transfer does a Git server use?
Source code is small; Git LFS objects, container registries and CI artifacts are not. A few hundred ordinary repositories rarely pass 10 GB. Add LFS for design files or datasets, or a container registry with a few images per day, and disk can grow by tens of GB a month. A1-1 has 1 vCPU, 1 GB RAM, 25 GB NVMe; A4-8 has 4 vCPU, 8 GB RAM, 180 GB NVMe. Set registry cleanup policies and artifact expiry from day one.
Transfer follows the same pattern: clones and pulls leave the server, so CI that clones the full history on every job is the main consumer. Use shallow clones (GIT_DEPTH in GitLab, fetch-depth in Actions-style workflows) to cut it sharply. The AMD EPYC plans include generous transfer, 5 TB on A2-4.
How do you back up a private Git server?
Use the application backup command on a schedule and copy the result off the server. For GitLab, gitlab-backup create writes a tarball to /var/opt/gitlab/backups; also copy /etc/gitlab/gitlab-secrets.json, without which the backup cannot be restored. For Forgejo:
su - git -c "forgejo dump --config /etc/forgejo/app.ini --file /home/git/dump-$(date +%F).zip"Add the daily backup add-on at deploy for whole-server recovery ($2.88 a month on A2-4), and keep pushing a mirror of your most important repositories to a second location.
Where should the Git server run?
Near the people who push most often, and in the same city as your CI runners. Every push, fetch and web page load benefits from a short round trip. A team split between Europe and North America often settles on London or New Jersey, each a reasonable transatlantic midpoint for one side. Intel Xeon plans such as I1-2 are sold in every one of our 32 cities.
Private Git server questions
Is GitLab CE on a 2 GB plan possible?
It will install, but it swaps constantly and times out. Start GitLab on A2-4 at minimum.
Can I mirror repositories from another Git host?
Yes. Forgejo, Gitea and GitLab all support pull mirrors that sync on a schedule, so the private server keeps an up-to-date copy.
Should I use SQLite or PostgreSQL with Forgejo?
SQLite is fine for a few users and is simplest to back up. Switch to PostgreSQL for larger teams or heavy CI traffic.
Can I run the GitLab image and runners on one server?
Only for light use, since builds compete with the web UI for memory. A separate runner on F2-4 is the cleaner setup.
How do I pay without an account email?
The account is a private key, and each order is one crypto invoice. Renewal invoices appear in Billing 7 days before the term ends.