Skip to content

The $5 VPS Self-Hosted Powerhouse

~$6/mo total

Replace $150+/mo in cloud PaaS, database, analytics, and monitoring bills on a single 4 GB RAM VPS.

Target Audience
Indie makers & small teams tired of per-seat pricing, sleeping DBs, and bandwidth surprises
Recommended Host
Hetzner CX23 / CX22 (2 vCPU, 4 GB RAM, 40 GB NVMe, 20 TB EU traffic — €5.99/mo ~$6.50)
Total Minimum RAM
2.3 GB (2304 MB)

Stack Components

Hosting & PaaS Self-Hosted

Dokploy

Lightweight PaaS UI (~512 MB RAM) managing Docker builds and Traefik SSL.

Databases Self-Hosted

PostgreSQL (Self-Hosted Docker)

Dedicated Postgres 17 (~512 MB RAM) with zero auto-sleep or row caps.

Cache & Queues Self-Hosted

Valkey

BSD-licensed Redis fork (~64 MB RAM) for BullMQ jobs & rate limits.

Umami

Cookie-free analytics (~256 MB RAM) sharing the same Postgres instance.

Uptime Kuma

Unlimited endpoint & SSL checks (~128 MB RAM).

GlitchTip

Sentry-compatible error tracking (~512 MB RAM) with unlimited seats.

Amazon SES

Hybrid exception: keep outbound SMTP on SES ($0.10/1k) for inbox deliverability.

Starter Docker Compose Bundle

docker-compose.yml
services:
  postgres:
    image: postgres:17-alpine
    restart: unless-stopped
    environment:
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
    volumes:
      - pg_data:/var/lib/postgresql/data

  valkey:
    image: valkey/valkey:8-alpine
    restart: unless-stopped
    command: valkey-server --maxmemory 128mb --maxmemory-policy allkeys-lru

  umami:
    image: ghcr.io/umami-software/umami:postgresql-latest
    restart: unless-stopped
    environment:
      DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/umami
      APP_SECRET: ${UMAMI_SECRET}
    depends_on:
      - postgres

  uptime-kuma:
    image: louislam/uptime-kuma:1
    restart: unless-stopped
    volumes:
      - kuma_data:/app/data

volumes:
  pg_data:
  kuma_data:

Search StackTiers Infrastructure Index

↑↓ navigate · ↵ openFull Pagefind search →