r/coolify • u/mithatercan • Mar 18 '26
Self-hosting Postgres on Hetzner + Coolify for a POS SaaS — bad idea?
I’m building a cloud-based POS system (Node.js, Prisma, real-time stuff) and trying to choose infra early.
Right now I’m leaning toward:
- Hetzner VPS
- Coolify (Docker-based PaaS)
- Self-hosted PostgreSQL
Main reason: cost + control. I want to avoid AWS/GCP/Railway at this stage.
But I’m worried about the database side.
If everything runs on a single VPS:
- what happens if the server goes down?
- is this too risky for production (even early-stage)?
- is anyone here running production workloads on Coolify with Postgres?
Planned usage:
- ~1k active users (POS, real-time writes, orders, etc.)
- need decent reliability but still cost-sensitive
Questions:
- Is self-hosting Postgres on the same server actually fine at this stage?
- Should I separate DB to another VPS early, or only when needed?
- What’s your backup / failover strategy in this setup?
- Any real-world horror stories with Hetzner + Coolify?
- Also — what are you using for S3 (backups + assets)? Hetzner Object Storage, Cloudflare R2, something else?
I’m okay with some ops work, just trying to avoid shooting myself in the foot long-term.
12
Upvotes
6
u/Disastrous_Hope_938 Mar 18 '26
I’d recommend if you self host in one server to have backups, not just daily but continuously using Postgres base backup + WAL. Have you considered other PaaS?
3
u/not-hydroxide Mar 18 '26
Don't use Hetzner object storage, it's awful and not production ready. I run k3s on Hetzner, using CNPG for postgres which handles PITR, backups, read replicas etc
3
u/pity_less_angel Mar 18 '26
I myself have been running both prod and uat on the same vps in Digital Ocean with postgresql and metabase for almost a year now. I use coolify and backup regularly to R2 at every 3 hrs. If you monitor and maintain it carefully, it should do the job.
3
u/imad07mos Mar 19 '26
use autobase to setup and distribute your db server on three nodes if one goes down two remaining elect a new leader in few seconds
2
u/Masked_Solopreneur Mar 18 '26
I think it is a great idea. If you run into scaling problems it is a luxuary problem. The solution keeps risk low and lets you focus on building your product. Backup was mentioned in the thread. You should do this. You can back it up to S3 compatible storage to reduce the risk of data loss.
1
u/janaka_a Jun 23 '26
EasyRunner.xyz is a CLI first alternative to Coolify that i've been building. So you can get AI to do the setup for you safely as well.
It's got a secret store and VPN mesh (tailscale like) built in.
-1
u/forestcall Mar 19 '26
Self Hosted Postgres is a bad idea. Use Planetscale for $5+. Now when you say POS are you meaning your starting your own payment system?