Live data from Hacker News

Should I run plain Docker Compose in production in 2026?

distr.sh

141–150 of 312 posts

Re: Should I run plain Docker Compose in production in 2026?

#141

Should you have a turkey sandwich for lunch in 2026? I don't know buddy just do whatever. There are ten thousand other sandwiches you could eat surely, but does turkey sound good for you?

Caffeine is healthy. Caffeine is unhealthy. Caffeine is healthy again. Eggs are healthy. Eggs are unhealthy. Etc etc etc. There’s a reason articles like this exist. Things change.

Well, the fashion changes. At one time, sugar too was advertised as beneficial for tooth health.

Re: Should I run plain Docker Compose in production in 2026?

#142

> How Do You Handle Deployments? This section misses the one thing I was interested in: how do you avoid downtime in a deployment? I like to write web applications with Perl and Mojolicious, and a deployment is just "hypnotoad app", and then hypnotoad gracefully starts up new worker processes to handle new requests and lets the other ones exit once they've finished handling their in-flight requests. When I switched t…

[dead]

Re: Should I run plain Docker Compose in production in 2026?

#143
post #139

> How Do You Handle Deployments? This section misses the one thing I was interested in: how do you avoid downtime in a deployment? I like to write web applications with Perl and Mojolicious, and a deployment is just "hypnotoad app", and then hypnotoad gracefully starts up new worker processes to handle new requests and lets the other ones exit once they've finished handling their in-flight requests. When I switched t…

Record the existing container id, rescale the service to 2 instances (hence bringing a second container up), wait for the second one to be healthy, (optional) stop directing traffic to the old container, wait a few seconds, stop the old container, rescale the service back to 1 instance.

Here's a CLI plugin that automates this: https://github.com/wowu/docker-rollout

Re: Should I run plain Docker Compose in production in 2026?

#144
post #139

> How Do You Handle Deployments? This section misses the one thing I was interested in: how do you avoid downtime in a deployment? I like to write web applications with Perl and Mojolicious, and a deployment is just "hypnotoad app", and then hypnotoad gracefully starts up new worker processes to handle new requests and lets the other ones exit once they've finished handling their in-flight requests. When I switched t…

Record the existing container id, rescale the service to 2 instances (hence bringing a second container up), wait for the second one to be healthy, (optional) stop directing traffic to the old container, wait a few seconds, stop the old container, rescale the service back to 1 instance.

Blue Green Deployment. There must be a docker container to handle this or at least a bash script.

edit: thanks to next comment for referencing one

Re: Should I run plain Docker Compose in production in 2026?

#145
post #75

I am using docker-compose everywhere. I really enjoy using it. I have a single thing that is annoying for normal production deployments, and that is that it isn't super easy to have a rolling deployment, I just need two replicas for zero downtime deployment, and I don't really want docker swarm. I think it is the networking which breaks at that point, and you have to have a more involved setup, and at that point I'd…

That's why I now use uncloud, simple as docker compose and got rolling deployments

https://uncloud.run/docs/guides/deployments/rolling-deployme...

Re: Should I run plain Docker Compose in production in 2026?

#147
post #46

Compose is great, but a couple things always created friction for me when using it for non-local setups: * Lack of a user-friendly way of managing a Docker Compose installation on a remote host. SSH-forwarding the docker socket is an option, but needs wrappers and discipline. * Growing beyond one host (and not switching to something like Kubernetes) would normally mean migrating to Swarm, which is its own can of worm…

For remote installation, use the `docker context` command. You create a context with a named SSH host and then it connects via SSH to that host (as configured in your local ssh_config) and uses its docker daemon. Everything works flawlessly apart from local bind mounts (for obvious reasons). If you remember `docker machine`, this is basically the modern version of that.

That's fair; good solution.

Re: Should I run plain Docker Compose in production in 2026?

#148

Earlier quoted context omitted.

What I'd like is systemd-compose. Maintaining several dozens of .service-files is not my idea of fun.

i don't have dozens of services. My complex SaaS has total 6 services and each one is running on its own server. Service file lives in the mono repo where all 6 services live. Makes it trivial to make changes and redeploy.

Keeping your sanity in tech is underrated.

Re: Should I run plain Docker Compose in production in 2026?

#150
post #63

Docker Compose was production ready in 2015 and it still is today. I've lost track of how many projects I've deployed with it and never really ran into a single issue where Docker Compose was at fault. It's super solid. Some time ago I've written about my experiences using it in production https://nickjanetakis.com/blog/why-i-like-using-docker-compo... . Not just for my own projects but for $500 million dollar compan…

Have you read the article?
Post reply on HN