logoalt Hacker News

blindlobstaryesterday at 6:21 PM3 repliesview on HN

Why both posts mention docker compose and not mentioning docker swarm. Being using it for my projects for long time. And it's so nice. Similar syntax, easy networking, rollout strategy, easy to add nodes to cluster.

You can have one template docker-compose.yaml file and separate deployment files for different envs, like: docker-compose.dev.yaml, docker-compose.prod.yaml

I think swarm is really underrated


Replies

Havoctoday at 12:49 AM

It’s in a death spiral - not widely used so people aren’t incentivised to put time into it so not widely used

vbezhenaryesterday at 10:47 PM

How do you solve persistence with swarm? Can I deploy postgres with network storage that will mount automatically on node where container is launched?

PufPufPufyesterday at 6:54 PM

I've been there. We still ended up with messy deploy scripts written in Ruby and the only debugging solution was "just comment out everything then run line by line".

show 1 reply