Add support for placement preferences docker-compose v3.3+ (#1425)

This commit is contained in:
ichx
2021-11-04 08:28:45 +08:00
committed by GitHub
parent c921643705
commit 8cb1b0599e
12 changed files with 220 additions and 37 deletions
@@ -1,4 +1,4 @@
version: "3"
version: "3.3"
services:
redis:
image: redis
@@ -10,4 +10,8 @@ services:
- node.hostname == machine
- engine.labels.operatingsystem == ubuntu 14.04
- node.labels.foo != bar
- baz != qux
- baz != qux
preferences:
- spread: node.labels.zone
- spread: foo
- spread: node.labels.ssd