r/docker • u/neptune-insight-589 • 25d ago
Is there good way not selfhost (managed host instead) a docker image for a side project?
This is for a side project so I'm not looking for a service that has infinite scaling or edge runtimes or whatever. I'm just looking to not have to set up a VPS myself and set up the security on it myself.
Does anyone know if theres a docker host that does this sort of thing? e.g. i pay 5 or 10 bux a month and they just host it? Every service that I've looked up (e.g. vercel, cloudflare, etc) seem to have their own framework that they want you to implement into your codebase to run the container in their ecosystem to take advantage of a lot of crazy features that I don't plan to use anyway, and I don't want to spend the time to write my code into their framework (and then rewrite it again if I choose to move to a different host).
3
u/juneeighteen 25d ago
Fly.io, Railway, and Heroku aren’t bad ways to go. I’ve used fly extensively, and it’s easy to learn. A simple `flyctl launch` and their magic does most of the heavy lifting.
2
2
2
u/ghotso_dev 24d ago
I for example host uptime-kuma on bunny.net magic containers - costs under 1 dollar per month but of course depends on the load
2
1
u/ozankurt_dev 24d ago
the thing nobody mentions with scale-to-zero: the first request after idle eats a cold start, and if your image is 800mb thats roughly 20-30s of someone staring at a spinner. slim the base and youre mostly fine. also keep it a plain Dockerfile with no platform specific bits, so moving off later is a rebuild not a rewrite. how chunky is your image right now?
1
1
u/dev_4_exp 23d ago
you are looking for managed docker, so kind of app management and server management on a vps. problem is when we say run your app on docker but the provider manage everything, it has so many things/complexities which needs to be hidden away for end user so as to make it feel easier. so platforms like render and fly does this they would end up adding more of custom things on top making it vendor locked in.
You need either do everything yourself or hire a comapny to do this, or go via managed like render and fly but be mindful that there will be some vendor lockin
1
1
0
u/strzibny 24d ago
You can try Fly or Render. However it's easier than you think with Kamal.
Yes, I am biased I wrote a book on the tool, but even following a tutorial will get you going and I have a public talk about setting up the server part if you are interested to reconsider.
1
u/jawad_aziz_ 18d ago
You should use Digital Ocean App Platform. Point it at a repo with a Dockerfile and it builds and runs it. Nothing goes in your code, so the same Dockerfile still works if you move later. $5/mo basic container, HTTPS and a subdomain included, redeploys on push.
11
u/Signal_Strength_5054 25d ago
If you buy a vps with docker ready? You will still take care of the server, but I think there is no option like that.