Self-Hosted Tools for Developers: A One-VPS Starter Guide

by Fahim Mahmud Chisti

Self-hosted tools for developers, such as analytics, automation, caches and your own apps, can all run on one VPS. You pay a predictable monthly cost, keep your data under your control and skip per-seat pricing. The trade-off is that you become the operations team. This guide sets out a small, sane baseline for a self-hosted stack and points to a step-by-step tutorial for each piece.

Quick answer: This guide covers which tools are worth self-hosting, a baseline for one server (Nginx, free TLS, Docker Compose or PM2, a firewall and tested backups) and a checklist before you go live. On a fresh VPS, start with SSH keys and the firewall, then deploy one app behind Nginx.

  1. Decide what to self-host and what to leave to a provider.
  2. Lock the server down: SSH keys and a firewall with a short allow list.
  3. Put Nginx with a free TLS certificate in front of every app.
  4. Run each app with Docker Compose, or with PM2 for a plain Node.js app.
  5. Schedule backups and test a restore before you rely on the server.
In this guide
  1. What Is Worth Self-Hosting (and What Is Not)
  2. Where to Start
  3. A Baseline Stack for One Server
  4. Example: A Minimal Firewall on Ubuntu
  5. Checklist Before You Call It Production
  6. All Tutorials in This Guide
  7. FAQ
  8. Next Steps

What Is Worth Self-Hosting (and What Is Not)

  • Good candidates: web apps and APIs, automation tools such as n8n or Activepieces, analytics such as Umami, caches and queues such as Redis, internal dashboards and staging sites.
  • Think twice: outbound email delivery and anything where downtime costs you customers and you have nobody on call. Email in particular depends on IP reputation that a new server does not have.

Where to Start

Pick the line that matches what you are doing today:

A Baseline Stack for One Server

  1. A reverse proxy in front of everything. Nginx terminates TLS (it handles the HTTPS encryption), routes each domain to the right app and serves static files. Apps listen on localhost only.
  2. Free TLS certificates that renew themselves. Certbot with Let’s Encrypt covers single domains over HTTP-01 and wildcard domains over DNS-01.
  3. One Docker Compose file per app. The app, its database and its volumes are described in one place, which makes moving servers and rolling back far easier.
  4. A process manager for bare Node.js apps. If you do not containerise, PM2 restarts crashed processes, starts them on boot and rotates logs.
  5. A firewall with a short allow list. Open SSH, 80 and 443. Databases and Redis should never be reachable from the internet.
  6. Backups you have restored at least once. Copy database dumps and uploaded files off the server on a schedule, and test the restore before you need it.

Example: A Minimal Firewall on Ubuntu

Run these commands on the server over SSH, as a user with sudo. Allow SSH before you enable the firewall, otherwise you lock yourself out of the server.

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status verbose

The last command should report Status: active, a default policy that denies incoming traffic, and allow rules for OpenSSH, 80 and 443. Open a second SSH session before you close the first one, to prove you can still get in.

If you use Docker, remember that ports published with -p 5432:5432 bypass UFW rules, because Docker manages its own firewall chain. Bind internal services to localhost instead, for example 127.0.0.1:5432:5432, or leave the port unpublished and let containers talk over a Docker network.

Checklist Before You Call It Production

  • SSH uses keys only, with password login disabled.
  • Automatic security updates are switched on.
  • Every app has a health check and restarts on failure.
  • Certificates renew automatically, and you have run certbot renew --dry-run to prove it.
  • Backups run on a schedule, are stored on another machine or in object storage, and a restore has been tested.
  • You know where the logs are and they are rotated so the disk cannot fill up.

All Tutorials in This Guide

Deployment, Nginx, SSL, caching and self-hosted tools, one task per tutorial.

FAQ

Is self-hosting cheaper than paying for SaaS tools?

Often, yes, in money: one VPS at a fixed monthly price can replace several per-seat subscriptions. Count your time as well, though. Updates, backups, certificate renewals and the occasional outage are now your job, so self-host the tools where control or cost really matters to you.

Should I use Docker Compose or PM2?

Use Docker Compose when the app needs a database or other services, or when you want the same setup on every server. PM2 is simpler for a single Node.js process that you run without containers. Many servers use both: Compose for tools, PM2 for one custom app.

How big a VPS do I need for self-hosted tools?

Start small and measure rather than guessing. Run your stack, watch memory with free -h and docker stats, and resize when usage stays high. Databases, search engines and local AI models are usually what push you to a larger plan.

Next Steps

Once the server is running, the API integrations and webhooks guide covers the application side: queues, retries and signature checks. For running language models on the same hardware, see building AI agents.

all_in_one_marketing_tool