{"post":{"slug":"how-to-self-host-saas-2026","title":"How to self-host a SaaS in 2026 (the full stack, the costs, the catches)","excerpt":"Self-hosting a small SaaS is cheaper than ever in 2026. Here is the full stack, real monthly costs, and the things people forget.","category":"code","date":"January 27, 2026","author":"ByteLedger Team","content":"<span class=\"dropcap\">S</span>elf-hosting a small SaaS in 2026 is cheaper, easier, and more reliable than it has ever been — and yet most indie founders still default to the most expensive cloud they can find. This guide is the alternative stack: simple components, sensible providers, real monthly numbers, and the parts no one talks about until 2am.\n\nIt is the setup we use for our own projects.\n\n## What changed in 2026\n\nThree shifts made self-hosting realistic for small teams again.\n\n- **Hetzner, OVH, and Latitude.sh keep eating market share.** A 4-vCPU 16 GB box is under $20/month.\n- **Managed Postgres is commoditized.** Neon, Supabase, Crunchy, Render — pick one and forget about replication.\n- **Coolify, Dokploy, and Caprover matured.** PaaS-style deploys on your own hardware, no Kubernetes.\n\n## How we picked the stack\n\nFive rules.\n\n- **Boring tech only**\n- **Managed where data lives**\n- **Self-hosted where compute lives**\n- **Backups before launch, not after**\n- **Monitoring on day one**\n\n## 1. Compute — one VPS, then two\n\nStart with one Hetzner CCX or AX box. $20–$50/month gets you 4–8 cores and 16–32 GB of RAM, which is more than enough for thousands of users. Run Docker Compose, Coolify, or Dokploy. Add a second box only when you need redundancy or when you split workloads.\n\nThe trade-off: you are responsible for the operating system. Plan an hour a month for patching.\n\n## 2. Database — managed, always\n\nRun Postgres on Neon, Supabase, Crunchy Bridge, or DigitalOcean Managed Databases. $20–$40/month for a small instance with daily backups, point-in-time recovery, and a real on-call team. Self-hosting Postgres for a SaaS is one of the few places where the cheap option is the wrong option.\n\n## 3. Storage, email, monitoring\n\nObject storage on Cloudflare R2 or Backblaze B2 — both about $0.005/GB and zero egress fees. Transactional email on Resend, Postmark, or Mailgun — $10–$20/month for the volume a small SaaS will hit. Monitoring on Better Stack, Uptime Kuma (self-hosted), or Hyperping. Error tracking on Sentry's free tier or self-hosted GlitchTip.\n\n## Comparison: Self-hosted SaaS stack in April 2026\n\n| Component | Pick | Monthly cost | Notes |\n| --- | --- | --- | --- |\n| VPS | Hetzner CCX | $20–$50 | EU + US locations |\n| Postgres | Neon or Supabase | $20–$40 | Always managed |\n| Object storage | Cloudflare R2 | $1–$5 | No egress fees |\n| Email | Resend / Postmark | $10–$20 | Watch bounce rate |\n| Monitoring | Better Stack | $0–$15 | Free tier works |\n\n## Common mistakes to avoid\n\n**Self-hosting your database.** It is the single workload where managed is worth it. The cost of a 3am page is higher than the price difference.\n\n**Skipping backups.** \"I'll set it up next week\" is how data loss happens. Test the restore on day one.\n\n**Going to Kubernetes.** Unless you have a real multi-region distributed-systems problem, Docker Compose plus a single VPS is a better answer for years.\n\n## FAQ\n\n**Is self-hosting compliant with SOC 2?**\nYes, but you take on more of the work. Managed providers (Neon, Resend, Cloudflare) carry compliance certifications you can inherit.\n\n**What about Kamal or Coolify?**\nBoth are great. Kamal is a deploy tool, Coolify is a full PaaS. Pick whichever fits your operational comfort level.\n\n**When should I leave self-hosting?**\nWhen the time you spend on infrastructure costs more than the savings. For most indie SaaS, that is somewhere past $10k MRR.\n\n## Where to go next\n\nFor related guides see [How to ship a SaaS in 30 days in 2026](/blog/how-to-ship-saas-30-days-2026), [Cost of running a side project in 2026](/blog/cost-of-running-a-side-project-2026), and [Best web hosting for developers in 2026](/blog/best-web-hosting-developers-2026).","hue":305,"metaTitle":"How to Self-Host a SaaS in 2026: Full Stack Guide","metaDescription":"The full stack for self-hosting a SaaS in 2026 — VPS, Postgres, object storage, email, backups, monitoring. Real monthly costs.","keywords":["self host saas 2026","cheap saas hosting","vps for saas","docker compose production","postgres hosted","self hosted email","saas server stack","vps vs cloud","cost of running saas","bootstrap saas hosting"],"tldr":["**A small SaaS runs on $30–$80/month** — one VPS, a managed Postgres, object storage, transactional email, monitoring.","**Use Docker Compose, not Kubernetes** — until you have a reason. You almost certainly do not.","**Backups, monitoring, and patching are the real cost** — in time, not dollars.","**Skip:** \"free tier\" providers for production. The 3am cold start is a customer you will lose."],"readTime":"3 min read","wordCount":615},"related":[{"slug":"self-host-an-llm-2026","title":"Self-host an LLM in 2026: hardware, software, and when it makes sense","excerpt":"Self-hosting a language model in 2026 is practical for teams with privacy requirements or high token volume. Here is what it actually costs and takes.","category":"code","date":"April 28, 2026","author":"ByteLedger Team","readTime":"4 min read","hue":321},{"slug":"self-hosting-vs-cloud-explained-2026","title":"Self-Hosting vs Cloud Explained for 2026","excerpt":"Self-hosting trades a monthly bill for your own time and hardware, while cloud services trade convenience for recurring cost and less control. Here is how to decide which fits you in 2026.","category":"tech","date":"August 9, 2026","author":"ByteLedger Team","readTime":"3 min read","hue":230},{"slug":"how-to-deploy-a-docker-container-2026","title":"How to Deploy a Docker Container in 2026: Real Steps","excerpt":"A plain-language 2026 walkthrough of how to deploy a docker container to a VPS, a managed platform, or an orchestrator, with the tradeoffs vendors skip.","category":"code","date":"May 6, 2026","author":"ByteLedger Team","readTime":"4 min read","hue":145}],"sameCategory":[{"slug":"bazel-build-explained-2026","title":"Bazel Explained: What Hermetic Builds Actually Cost","excerpt":"Bazel delivers reproducible, precisely cached builds and demands that you describe everything. Here is what you get, what it costs, and who should say no.","category":"code","date":"August 19, 2026","author":"ByteLedger Team","readTime":"3 min read","hue":145},{"slug":"graphql-federation-2026","title":"GraphQL Federation: One Graph, Many Teams","excerpt":"Federation composes independently-owned subgraphs into a single API. Here is what it solves, the operational cost it adds, and when a simpler gateway is enough.","category":"code","date":"August 19, 2026","author":"ByteLedger Team","readTime":"3 min read","hue":300},{"slug":"hermetic-builds-explained-2026","title":"Hermetic Builds Explained: Same Inputs, Same Output","excerpt":"A hermetic build depends only on declared inputs. Here is what that property gives you, the common leaks that break it, and how to move toward it incrementally.","category":"code","date":"August 19, 2026","author":"ByteLedger Team","readTime":"3 min read","hue":130},{"slug":"monorepo-tooling-compared-2026","title":"Monorepo Tooling Compared: What You Actually Need","excerpt":"Monorepo tools solve task orchestration and caching, not repository layout. Here is what each tier provides and how to tell when you have outgrown the simple option.","category":"code","date":"August 19, 2026","author":"ByteLedger Team","readTime":"3 min read","hue":150}],"newer":{"slug":"how-to-save-on-home-insurance-2026","title":"How to save on home insurance in 2026 (rates went up — here's the playbook)","excerpt":"Home insurance premiums are 30–40% higher than they were three years ago. Here's the 2026 playbook for cutting your premium without underinsuring.","category":"finance","date":"January 27, 2026","author":"ByteLedger Team","readTime":"3 min read","hue":280},"older":{"slug":"nuclear-fusion-progress-2026","title":"Nuclear fusion progress in 2026: where commercial fusion actually stands","excerpt":"Fusion has been \"20 years away\" for 60 years. Here is what changed in the last five and where commercial fusion actually stands in 2026.","category":"tech","date":"January 27, 2026","author":"ByteLedger Team","readTime":"3 min read","hue":240}}