How One Developer Cut Hosting Costs by Self-Hosting on a $24 VPS Using Dokploy

A developer paying $198/month on a managed platform to host a Next.js app, small API, Postgres database, and a cron job decided to explore self-hosting after questioning the ongoing cost. The core insight was that managed platforms charge primarily for pre-configured infrastructure — reverse proxies, auto-renewing TLS certificates, and git-push deployments — not raw compute. After a failed attempt at manual server setup using PM2 and Nginx, the developer turned to Dokploy, an open-source tool that replicates that workflow on a VPS the user controls directly. A DigitalOcean droplet with 4GB RAM at $24/month proved sufficient to run the app, database, and builds, after a 2GB droplet caused silent out-of-memory build failures. The resulting setup preserved the original push-to-deploy experience, including automatic HTTPS, deployment history, and rollbacks, at a fraction of the previous cost.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in