News for hackers. Stuff that matters.
Re:Docker's Second Death by GordonS on Sunday December 06, 2020 @03:48PM (#25326476)
I use Docker Swarm (basically multi-node Compose) in production, and am also really happy with it. It's an order of magnitude simpler than k8s, and perfect for small-medium scale deployments.

In terms of configuring your stack, you use regular Compose files, with a few enhancements available (such as better support for secrets). I love it!

Re:Docker's Second Death by ga6840 on Sunday December 06, 2020 @09:41PM (#25328865)
I also want use docker swarm in production, but I keep hearing people say it has network bugs like after some time services cannot talk to each other. Have you experienced any such issue?
Re:Docker's Second Death by GordonS on Monday December 07, 2020 @08:56AM (#25332099)
I haven't experienced any networking issues in production at all.

I have experienced 1 networking issue, but only specifically when keepalives are disabled on Windows (where I use Docker for dev/test only)[0]. When using an overlay network, network connections to dockerised Postgres go "stale" after 15 minutes. I workaround it by publish the Postgres port in "host" mode instead of the default of "ingress" mode using `endpoint_mode: dnsrr`.

[0] https://success.mirantis.com/article/ipvs-connection-timeout...

Re:Docker's Second Death by revskill on Sunday December 06, 2020 @11:45PM (#25329389)
What's your solution to the problem of shared disk between hosts ?
Re:Docker's Second Death by GordonS on Monday December 07, 2020 @08:57AM (#25332105)
I've never actually had to use shared disk, but I'd use NFS if I did (as another commenter suggested) - I've tried it out before, just when playing, and it worked fine.
Re:Docker's Second Death by dismalpedigree on Monday December 07, 2020 @12:20AM (#25329536)
Nfs volume mounts. Works quite well. Make sure the hosts can access the nfs endpoints (i run nfs on separate lan)