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
| Option | What you get | Resources |
|---|---|---|
| Plain Git over SSH | Bare repositories, push and pull, no UI | Minimal |
| Gitolite | Fine-grained SSH access control, config in a Git repo | Minimal |
| Gitea | Web UI, pull requests, issues, packages, Actions-compatible CI | Light |
| Forgejo | Community-governed Gitea fork with similar features | Light |
| OneDev | Git with built-in CI and issue tracking | Moderate |
| GitLab (Community Edition) | Full DevOps platform: CI/CD, registry, planning, security tools | Heavy |
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
| Setup | Suggested plan |
|---|---|
| Plain Git, Gitolite, or Gitea/Forgejo for a small team | 2 vCores / 8 GB |
| Gitea/Forgejo for larger teams with packages and Actions | 4 vCores / 16 GB, runners separate |
| GitLab for a team | 4 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.
ServoMix 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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| SMX vPro XS (AMD EPYC) | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹420/mo | Websites, small APIs, bots, staging and VPN servers | Order |
| SMX vPro S (AMD EPYC) | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹560/mo | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| SMX vPro M (AMD EPYC) | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹840/mo | Production databases, high-traffic sites, multi-container apps | Order |
| SMX vPro L (AMD EPYC) | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹1,120/mo | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| SMX vCore XS (Intel Xeon) | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹270/mo | Business websites, small apps, scheduled jobs and bots | Order |
| SMX vCore S (Intel Xeon) | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| SMX vCore M (Intel Xeon) | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| SMX vCore L (Intel Xeon) | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,248/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the ServoMix 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?
Which self-hosted Git platform is lightest?
How much RAM does GitLab need?
Can I run CI with a self-hosted Git server?
Are mirrors a backup?
What should be backed up?
Should Git use SSH or HTTPS?
Can a Git platform host Docker images?
How do I secure a Git server?
Which plan suits a Git server?
Related Guides
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.
Your feedback helps us continuously improve ServoMix guides.
Know someone who may find this guide useful?
