Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Swarm is a cluster solution made on top of Compose so it isn't useful on a local machine.


It's very useful on a local machine if you're using Swarm in production, as Swarm supports some additional things that Compose doesn't.


The differences are:

- Replicas: could be made with YAML templating

- Update/rollback policies other than stop-first, very useful on a local machine?

- Resource limits: stayed in v2 to sell Swarm, although there's cgroup_parent which has to be created manually


There are yet more differences.

For example, Swarm supports `configs`, while Compose does not - and I use `configs`, and would much rather not have to have separate service definitions for dev and prod to work around such insufficiencies.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: