News for hackers. Stuff that matters.
Re:Best practices around creating production ready web apps ... by cs02rm0 on Tuesday June 01, 2021 @04:34PM (#27360920)
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.

Re:Best practices around creating production ready web apps ... by PeterisP on Tuesday June 01, 2021 @07:42PM (#27362899)
A 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.
Re:Best practices around creating production ready web apps ... by walleeee on Tuesday June 01, 2021 @07:28PM (#27362783)
The 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

Re:Best practices around creating production ready web apps ... by cs02rm0 on Wednesday June 02, 2021 @04:01AM (#27366134)
Totally 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.

Re:Best practices around creating production ready web apps ... by ransom1538 on Tuesday June 01, 2021 @09:01PM (#27363550)
"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).

Re:Best practices around creating production ready web apps ... by 411111111111111 on Tuesday June 01, 2021 @04:43PM (#27361011)
Docker swarm deploys to multiple hosts and there is also kompose for k8s.

I haven't used either of them in production though

Re:Best practices around creating production ready web apps ... by yjftsjthsd-h on Tuesday June 01, 2021 @09:02PM (#27363557)
...am I the only one having ansible deploy compose across machines?
Re:Best practices around creating production ready web apps ... by lehoule on Thursday June 03, 2021 @08:37PM (#27389161)
Oh man I’m currently looking into doing exactly that. Can you elaborate a little bit on how it works?