3 ms·
I don't think you would in prod, unless you were happy with it all running on one host. Shame really, I find compose simple and neat and k8s+terraform an unset
by cs02rm0 5y ago
I don't think you would in prod, unless you were happy with it all running on one host.
Shame really, I find compose simple and neat and k8s+terraform an unsettling mess.
- 411111111111111 5y agoDocker swarm deploys to multiple hosts and there is also kompose for k8s. I haven't used either of them in production though
- walleeee 5y agoThe single host model is really pretty common Personal or small/medium business sites, research software, free web utilities What's considered lean in startupland can get pretty beefy compared to the shoestring a lot of projects are compelled by necessity to get by on Compose can be great if you just need a web server and maybe a database and background worker and you don't have anybody suing you or losing millions for the occasional maintenance hour
- cs02rm0 5y agoTotally agree, wasn't slating the idea at all, simplicity wins out nearly every time for me. It is an argument I've lost with managers more times than I've won though.
- PeterisP 5y agoA single powerful host can run a quite large business; you might put two identical instances of that host behind a loadbalancer to reduce downtime due failures or upgrades/deployments, and for a single pair of hosts complex orchestration is IMHO overkill, you can just manually run the deploy on one host, wait for it to start working properly, and then upgrade the other.
- ransom1538 5y ago"I don't think you would in prod, unless you were happy with it all running on one host." 1) create a VM, set it up with docker compose to auto start -- have it reference code on a network drive. 2) take a an image of 1) 3) create a load balancer, balancing that image. GCP load balancers/instance groups even a way to rollout images. That is %80 of k8s right there (endpoint, scaling, containers, rollouts).
- yjftsjthsd-h 5y ago...am I the only one having ansible deploy compose across machines?
- lehoule 5y agoOh man I’m currently looking into doing exactly that. Can you elaborate a little bit on how it works?