DevOps12 min read•Updated November 2026

VPS Hosting for Git Servers

Quick answer

To self-host Git on a VPS, choose between plain Git over SSH (no web interface, minimal resources), Gitolite for SSH access control, or a full platform with web UI, pull requests, issues and CI: Gitea and Forgejo are lightweight single binaries, while GitLab offers the broadest feature set but needs much more memory. Run the platform with PostgreSQL behind HTTPS, use SSH keys for Git access, enable two-factor authentication, connect CI runners on separate servers, mirror important repositories, back up repositories and the database together, and keep the platform updated.

Code is a company's most valuable digital asset. Hosted platforms are convenient, but some teams need repositories on their own infrastructure for data control, compliance, cost at scale, access from internal networks, or independence from a single provider. A VPS makes a capable private Git server, from a minimal SSH setup to a full collaboration platform.

Options

OptionWhat you getResources
Plain Git over SSHBare repositories, push and pull, no UIMinimal
GitoliteFine-grained SSH access control, config in a Git repoMinimal
GiteaWeb UI, pull requests, issues, packages, Actions-compatible CILight
ForgejoCommunity-governed Gitea fork with similar featuresLight
OneDevGit with built-in CI and issue trackingModerate
GitLab (Community Edition)Full DevOps platform: CI/CD, registry, planning, security toolsHeavy

Plain Git over SSH

For one person or a tiny team, create a git user, add developers' SSH keys, restrict the user's shell to git-shell, and create bare repositories with git init --bare. It is simple and reliable but offers no web interface, per-repository permissions or code review tools. Gitolite adds access control on top while staying lightweight.

Full Platforms

Most teams want pull requests, code review, issues, wikis, webhooks and CI integration. Gitea and Forgejo provide these with small resource needs and simple upgrades (see our Gitea guide and Forgejo guide). GitLab provides an extensive all-in-one platform, but it runs many services and needs several gigabytes of RAM even for small installations; check its current requirements before choosing it.

SSH and HTTPS Access

  • Serve the web interface over HTTPS behind Nginx or Caddy.
  • Offer Git over SSH with keys; either share port 22 with the system SSH (using the platform's built-in integration) or run the platform's SSH on another port.
  • For HTTPS Git access, use personal access tokens, not account passwords.
  • Enable two-factor authentication and, for teams, single sign-on through OAuth or LDAP.

CI Integration

Gitea and Forgejo include Actions systems compatible with many GitHub Actions workflows, using runners you host. GitLab has GitLab CI with GitLab Runner. You can also connect Jenkins or other CI through webhooks (see our Jenkins guide). Run CI runners on separate servers so builds cannot slow down or compromise the Git server.

Packages and Images

Gitea, Forgejo and GitLab include package registries for container images and many package formats, keeping artifacts next to code with the same permissions (see our private Docker registry guide). Plan disk space accordingly.

Mirroring

Use push mirrors to copy important repositories to a second location automatically, or pull mirrors to keep copies of external projects you depend on. Mirrors help redundancy and migration, but they are not backups, because deletions and force-pushes are mirrored too.

Backups

Back up repositories, the database, configuration and attachments together, using the platform's dump or backup tools or consistent file-level backups. Store backups off-site, keep several generations, and test restoring to a fresh server. Developers' clones are partial copies at best; they do not include issues, pull requests or settings.

Security

  • Keep the platform updated; Git platforms receive regular security releases.
  • Disable open registration unless you intend a public instance.
  • Protect main branches with required reviews and status checks.
  • Scan repositories for committed secrets, and rotate any found.
  • Limit admin accounts and audit them regularly.

Monitoring

Watch disk usage (repositories, packages and LFS objects grow steadily), memory, response times, background job queues and backup success. Alert on certificate expiry and failed backups.

Sizing

SetupSuggested plan
Plain Git, Gitolite, or Gitea/Forgejo for a small team2 vCores / 8 GB
Gitea/Forgejo for larger teams with packages and Actions4 vCores / 16 GB, runners separate
GitLab for a team4 vCores / 16 GB or more, per GitLab's requirements

Example: A Software Agency

An agency moves 300 client repositories from a hosted platform to Forgejo on a 4 vCore / 16 GB VPS. Developers sign in through the agency's identity provider with two-factor authentication, branch protection requires one review, Actions runners run on two separate build servers, important repositories push-mirror to a second server, and nightly backups go to object storage.

Common Mistakes

  • Choosing GitLab for a small team on an undersized server.
  • Treating mirrors or developer clones as backups.
  • Open registration on a private instance.
  • CI runners on the Git server itself.
  • Falling far behind on security updates.

In Short

Pick plain Git for minimal needs, Gitea or Forgejo for lightweight collaboration, or GitLab for an all-in-one platform with more resources. Secure access with keys, HTTPS and two-factor, keep CI separate, and back up everything together.

Moving from a Hosted Platform

Most self-hosted platforms can import repositories from GitHub, GitLab or Bitbucket, often including issues, pull requests, labels and releases. Start with a few repositories, check history, issues and permissions, update CI pipelines and webhooks, and then move the rest in batches. Keep the old platform read-only for a while so links and integrations can be updated without pressure, and tell the team clearly when the switch happens. Whichever platform you choose, write down how repositories, users and backups are managed, so the setup does not depend on one person's memory.

SkyRainCloud Plans for This Workload

Lightweight Git platforms such as Gitea or Forgejo run well on 2 vCores / 8 GB for teams. GitLab needs considerably more memory; plan 4 vCores / 16 GB or more, and separate CI runners.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

Can I host my own Git server on a VPS?
Yes, from plain Git over SSH to full platforms such as Gitea, Forgejo, OneDev or GitLab.
Which self-hosted Git platform is lightest?
Gitea and Forgejo are lightweight single binaries suitable for small servers.
How much RAM does GitLab need?
Several gigabytes even for small installations; check GitLab's current requirements.
Can I run CI with a self-hosted Git server?
Yes: Gitea and Forgejo Actions, GitLab CI, or external CI like Jenkins via webhooks.
Are mirrors a backup?
No. Mirrors replicate deletions and force-pushes; keep proper backups too.
What should be backed up?
Repositories, database, configuration and attachments together, off-site and restore-tested.
Should Git use SSH or HTTPS?
Both work; use SSH keys, or HTTPS with personal access tokens rather than passwords.
Can a Git platform host Docker images?
Yes. Gitea, Forgejo and GitLab include package and container registries.
How do I secure a Git server?
Updates, no open registration, two-factor or SSO, branch protection and secret scanning.
Which plan suits a Git server?
2 vCores / 8 GB for Gitea or Forgejo with small teams; 4 vCores / 16 GB or more for larger teams or GitLab.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning