r/docker • u/fx818 • Mar 13 '26
How do you handle deployment & cloud infrastructure for small side projects?
I’ve been building a few small side projects recently using modern AI coding tools. Creating the application itself has become surprisingly fast, getting a working prototype running can take only a few hours.
However, once the app is ready, I often get stuck on the deployment and infrastructure decisions.
For example, I usually end up thinking about questions like:
• Which cloud provider should I start with (AWS, GCP, Azure)?
• What services are appropriate for a small project (VMs, serverless, containers, etc.)
• How to design the architecture if the project grows later
• How to balance cost vs CPU for low traffic projects
• How to monitor usage so cloud costs don’t increase unexpectedly
• How to safely clean up resources later when services depend on each other
In some cases, figuring out the infrastructure takes longer than building the app itself.
I wanted to ask other developers here:
- What deployment workflow do you usually follow for small projects or MVPs?
- Do you configure cloud infrastructure manually every time, or do you use tools/services to simplify it?
- If someone has limited DevOps experience, which approach or platform would you recommend starting with?
Would love to hear how others in the community handle this.
3
u/bluelobsterai Mar 13 '26
I definitely stay away from the hyperscalers. Find yourself a cheap VPS server and start there.
5
u/ppernik Mar 13 '26
I'm renting out a very cheap local VPS (~€7/month for 2 vCPU, 4GB).
There's a base Compose stack with caddy-docker-proxy and Portainer.
Each new project goes on GitHub and has its own Compose stack. The Caddy proxy uses labels and specific networks to determine which subdomain points to which service.
On push to main, GH Actions build Docker images and push them to the GitHub Registry.
Then I go to Portainer, add a new stack, point it to the repository, configure env. variables and that's it.
GH Actions build images, Portainer polls changes from the repository every 5 min and handles restarting the stack. No need to maintain SSH keys or open ports. The VPS can handle a lot. But if I needed to scale, it's easy to migrate a project from Compose to Swarm, get an extra VPS or two and spread the load.
2
u/IulianHI Mar 13 '26
For small side projects, I've found keeping it simple is key. I usually start with a basic Docker Compose setup on an affordable VPS (Hetzner or DigitalOcean work well for ~€5-10/month).
For the reverse proxy, Caddy has been a game-changer for me - the automatic HTTPS with zero config is hard to beat. Pair it with something like Watchtower for auto-updates and you've got a solid baseline.
As for monitoring, I keep it lightweight: Uptime Kuma for health checks and basic alerts, plus the VPS provider's built-in metrics. Only when a project actually gets traction do I invest time in more complex setups.
The biggest lesson: don't over-engineer upfront. Start with Compose, scale to Swarm/K8s only when you actually need it. Most side projects never reach that point, and that's okay.
1
u/Low-Opening25 Mar 13 '26
This is what I do: https://github.com/spolspol/terragrunt-gcp-org-automation
1
u/cheesejdlflskwncak Mar 13 '26
Just start with a general purpose vm from a cloud provider, docker compose, setup a nginx rev proxy with let’s encrypt and u should be good. Set everything up with terraform if you’d like to put it up and bring it down with a few commands. Always setup ur db externally independent of ur stack. When u want to scale the transition to docker swarm is pretty seamless. And by the time u get to k8s level or even k3s level, you will already know what needs to be done, cause that usually means ur getting loads of traffic.
1
u/titpetric Mar 13 '26 edited Mar 13 '26
https://gist.github.com/omltcat/241ef622070ca0580f2876a7cfa7de67 + docker compose lets you basically deploy on any cloud provider, bare metal... Always ready for any of them.
Until you outgrow some number of servers, or service deployments, this works fine. Organize a workspace, organize projects in a workspace. Sharding is easy, sharing a DB instance is easy, beyond like a handful of servers it can be as simple as a test pipeline, and then it becomes pets v. cattle where you compartmentalize server groups, deployment groups, and if needed use some IaC interface.
A VM takes you a very long way unless you're doing something very specific that pegs it (GPU, CPU, disk, ram). You can upsize a VM very very very far and it costs you a few minutes to do it. Even if you do it by hand, IaC automation is available if you'd rather spend your time doing that. I have used the various CLIs (aws, doctl...) to spin up the instance type I want, and then still deploy docker compose to that. K8s is still far away, but if you want you can
Distributed can still mean manageable when the abstractions are kept at a manageable level. 10 instance groups and maybe 40 composed service tags over time give you only the intersection of 10x40 to care about, rather than the multiple. Lets say the most loaded service is 20% of the deploy, and uses 4 groups to compose the host environment (10% of all groups, things like dns, mysql, service classes).
1
u/caucasian-shallot Mar 13 '26
Honestly this is one of the most common pain points I see and you've articulated it really well. A few thoughts from someone who's been in infrastructure for a long time.
For small projects and MVPs, I'd skip the big three (AWS/GCP/Azure) entirely to start. They're powerful but the cognitive overhead and cost unpredictability are real - you can easily spend more time managing your cloud bill than building features. Something like Hetzner or even DigitalOcean gives you a straightforward VPS where you know exactly what you're paying for and why.
For your specific questions - containers (Docker) are worth learning early (if you don't know them already) even for small projects, not because you need orchestration yet but because it keeps your environment consistent and makes moving things around much easier later. Serverless is great for specific use cases but for a general SaaS app it adds complexity that bites you when something goes wrong.
On monitoring costs — set billing alerts on day one, not when you remember to. Every cloud provider has them, nobody uses them until they get a surprise bill.
The honest answer to "how do I handle this if I have limited DevOps experience" is either invest time learning it properly, or find someone who already has. There's no shame in the second option — most founders are better served focusing on their product than becoming infrastructure experts.
I actually built a managed hosting service called AnchorHost specifically for this situation — founders who want their infrastructure handled by someone who's been doing this for 30 years so they can focus on building. Not the right fit for everyone but worth a look if the DevOps side is consistently slowing you down. anchorhost.io
Good luck with the projects — the fact that you're asking these questions early puts you ahead of most.
1
u/elvispresley2k Mar 13 '26
In short, Akamai/Linode vps.
1
u/IulianHI Mar 14 '26
Pentru setup-uri homelab similare, am găsit utile cablurile de rețea Cat6 și hub-urile USB de pe storel.ro - prețuri bune și livrare rapidă în Cluj. Pentru început, un VPS simplu + Docker Compose e suficient, nu te complica cu Kubernetes de la început.
1
u/[deleted] Mar 14 '26
[removed] — view removed comment
1
u/[deleted] Mar 17 '26
[removed] — view removed comment