---
title: "A self-hosted developer stack on one VPS: layout and limits · CloudSat"
description: "Run Git, error tracking, docs and a password vault for a small team on one VPS: what to colocate, what to keep apart, how to size it and how to back it up."
url: https://cloudsat.io/learn/developer-tool-stack-on-one-vps
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Self-hosting](https://cloudsat.io/learn/topic/self-hosting)

# A self-hosted developer stack on one VPS: layout and limits

Run Git, error tracking, docs and a password vault for a small team on one VPS: what to colocate, what to keep apart, how to size it and how to back it up.

CloudSat team November 18, 2026 6 min read

A small team can replace several SaaS subscriptions with self-hosted tools on one server: a Git forge, error tracking, a wiki, a password vault. One server is a perfectly good home for that, as long as you build it as a set of separate applications sharing a few services, not as a pile of containers that nobody can restore. This guide covers the layout, the parts that must live elsewhere, sizing, and the backups that make the whole thing trustworthy.

## What belongs on the server, and what does not

| Role | Typical choice | On this server? | Why |
| --- | --- | --- | --- |
| Git forge with issues and packages | Forgejo or Gitea | Yes | The core service, and light enough for small servers |
| Error tracking | GlitchTip or Bugsink | Yes | Small footprint, works with Sentry SDKs |
| Wiki and docs | BookStack, Docmost or Wiki.js | Yes | Mostly reads, little load |
| Password vault | Vaultwarden | Yes, with care | Back it up separately and keep its admin page private |
| Reverse proxy and TLS | Caddy | Yes | One entry point for every app |
| CI runners | Forgejo Runner or Woodpecker agents | No | Builds spike CPU and memory and run code from pull requests |
| Uptime monitoring | Uptime Kuma | No | It must keep working when this server does not |
| Self-hosted Sentry | Sentry | No | It needs a large server of its own |

The two "no" rows matter most. A CI runner executes whatever a branch tells it to, often with access to a Docker socket, which makes it the riskiest process you run; on the same host it can read every other application's data. Give runners their own server, or several, and keep the forge's data away from them. Monitoring must sit outside for the opposite reason: a monitor that dies with the server cannot tell you the server died, which is why the [Uptime Kuma guide](https://cloudsat.io/learn/uptime-kuma-2-setup-and-alerting) puts it in another region.

## The layout: one proxy, one project per app

Give each application its own directory and Compose project, so that you can update, stop or restore one without touching the others:

```text
/srv
├── caddy/          Caddyfile, certificates
├── forgejo/        compose.yaml, .env, data/
├── glitchtip/      compose.yaml, .env
├── wiki/           compose.yaml, .env, data/
├── vaultwarden/    compose.yaml, .env, data/
└── postgres/       compose.yaml, data/, dumps/
```

Applications publish no ports. They join a shared Docker network that Caddy also joins, and Caddy routes each hostname to its app:

```yaml
# /srv/forgejo/compose.yaml (excerpt)
services:
  forgejo:
    image: codeberg.org/forgejo/forgejo:17
    restart: unless-stopped
    volumes:

      - ./data:/data

    networks: [proxy, db]
networks:
  proxy:
    external: true
  db:
    external: true
```

```text
git.example.com {
    reverse_proxy forgejo:3000
}
errors.example.com {
    reverse_proxy glitchtip-web:8000
}
```

Create the shared networks once with `docker network create proxy` and `docker network create db`. Only Caddy publishes ports 80 and 443, which also avoids the trap of Docker-published ports slipping past the host firewall. The one exception is SSH access for Git, which Forgejo can serve on a second port, or which you can leave to the host's own SSH server.

### One database server, one database per app

Forgejo, GlitchTip and most wikis support PostgreSQL. Running one PostgreSQL instance with a separate database and role per application uses less memory than five database containers and gives you a single backup job:

```bash
docker exec -it postgres createuser -U postgres --pwprompt forgejo   # asks for the new role's password
docker exec -it postgres createdb -U postgres -O forgejo forgejo
```

The trade-off is shared fate: a PostgreSQL major upgrade touches every app at once, and one runaway query slows them all. For a team of a few people that is usually acceptable. Check each application's supported PostgreSQL versions before you pick one; GlitchTip, for example, supports PostgreSQL 14 and newer.

## Error tracking without Sentry's footprint

Self-hosted Sentry is complete and heavy. Its documentation asks for at least 4 CPU cores, 16 GB of RAM plus 16 GB of swap and 20 GB of free disk, and recommends 32 GB of RAM; it runs Kafka, ClickHouse, Redis, PostgreSQL and many Sentry services of its own. Its Functional Source License lets you self-host freely but forbids selling it as a service. That is a server of its own, not a tenant on a shared one.

Two lighter tools accept events from the same Sentry SDKs, so application code barely changes:

- **GlitchTip** (MIT) recommends 512 MB of RAM, needs PostgreSQL, and treats Valkey or Redis as optional. Its documentation estimates about 30 GB of disk for an instance that receives a million events a month.
- **Bugsink** (PolyForm Shield license) focuses on error tracking alone, with stack traces, local variables and request context.

To give error tracking a machine of its own, deploy [GlitchTip](https://cloudsat.io/apps/deploy-glitchtip) or [Bugsink](https://cloudsat.io/apps/deploy-bugsink); CloudSat offers both as one-click apps.

## Size it by measuring

Published minimums are a floor, and real usage depends on your repositories, your users and your event volume. Start on a mid-sized plan, then read actual numbers for a week:

```bash
docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'
free -h
df -h /srv
```

Memory is usually the first limit, then disk on the forge (repositories, LFS and packages) and the error tracker (events). CPU spikes come from Git operations on large repositories and from the database during backups. When the measurements say so, resize to a bigger plan rather than squeezing services.

## Sign-in and access

Five apps with five password databases is how stale accounts survive. Forgejo and Gitea can act as an OAuth2 provider for other applications, which is a simple form of single sign-on for a small team; Authentik or Keycloak are the next step when you need groups and MFA policies in one place. Keep admin pages, such as Vaultwarden's admin panel, reachable only through a VPN or an SSH tunnel.

## Backups you have actually restored

Back up two things per app: its data directory and its database. A nightly job can do both:

```bash
docker exec postgres pg_dumpall -U postgres | gzip > /srv/postgres/dumps/all-$(date +%F).sql.gz
restic -r sftp:backup@203.0.113.20:/srv/restic backup /srv --exclude /srv/postgres/data
```

Dump the database rather than copying its live files, send the backup to a server in another region, and restore one application onto a test server every quarter. A backup that has never been restored is a hope.

## Updates without surprises

Pin image versions in each `compose.yaml` and update on a schedule: read the release notes, take a snapshot, then `docker compose pull && docker compose up -d` one project at a time. Forge major versions deserve the most care, because they migrate the database on first start and cannot be rolled back without a restore.

## When one server is no longer enough

Watch for three signs: builds or imports slow down everyone's work, maintenance windows start to hurt, or memory pressure persists after tuning. Split in this order: CI runners first (if they are not separate already), then error tracking, which grows with traffic, then the database onto its own server.

## FAQ

### Is GitLab a simpler alternative to all of this?

It bundles the forge, CI, container registry, issues and wiki into one application with one upgrade path, which is simpler to reason about. It also needs a larger server, at least 8 GB of memory, and it is one application to fail rather than several. Choose it when you want one integrated product; choose separate tools when you want each piece small and replaceable.

### Should I use a self-hosted PaaS instead of plain Compose?

You can. Tools such as Coolify or Dokku give the same layout a dashboard and automatic deployments. The principles above still apply: separate data per app, CI elsewhere, monitoring outside and tested backups.

### How do I keep the Docker side secure?

Keep the Docker socket out of every container that does not strictly need it, publish nothing except the reverse proxy, run containers without unnecessary privileges and keep images pinned and updated. The [Docker security checklist](https://cloudsat.io/learn/docker-security-checklist-for-servers) goes through each point.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Self-hosting](https://cloudsat.io/learn/topic/self-hosting)

- [Move off GitHub without breaking builds, links or history](https://cloudsat.io/learn/move-repositories-off-github): DevOps Move off GitHub without breaking builds, links or history 6 min read
- [Remote Docker builds over SSH: use a VPS as your engine](https://cloudsat.io/learn/remote-docker-builds-over-ssh): DevOps Remote Docker builds over SSH: use a VPS as your engine 7 min read
- [Uptime Kuma 2 on a VPS: monitors, alerts and status pages](https://cloudsat.io/learn/uptime-kuma-2-setup-and-alerting): DevOps Uptime Kuma 2 on a VPS: monitors, alerts and status pages 6 min read
- [Portainer vs Cosmos Cloud: console or front door?](https://cloudsat.io/learn/portainer-or-cosmos-cloud-for-docker): Self-hosting Portainer vs Cosmos Cloud: console or front door? 6 min read
