You do not need an expensive Kubernetes cluster to run reliable business software. A well-configured Linux VM running Docker Compose behind Nginx easily serves thousands of daily orders while keeping monthly cloud costs predictable.
Keep app ports private behind Nginx
Bind application containers strictly to 127.0.0.1 rather than 0.0.0.0 so only your reverse proxy can reach them. Nginx terminates TLS 1.3 with auto-renewed Let's Encrypt certificates and cleanly separates web, API, and admin subdomains.
Build once in CI, pull on the VM
Compiling Java or Next.js directly on a small production server risks memory spikes during live traffic. Instead, build multi-stage Docker images inside GitHub Actions, push them to GHCR, and run a fast pull-and-restart over SSH with health checks.
Treat backups as code
Automated daily database dumps — using online-safe backup commands rather than raw file copies — with retention pruning and periodic restore drills turn hardware or human mistakes into minor inconveniences.




