3 ms·
Swarm is a cluster solution made on top of Compose so it isn't useful on a local machine.
by chupasaurus 5y ago
Swarm is a cluster solution made on top of Compose so it isn't useful on a local machine.
- GordonS 5y agoIt's very useful on a local machine if you're using Swarm in production, as Swarm supports some additional things that Compose doesn't.
- chupasaurus 5y agoThe 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
- GordonS 5y agoThere 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.