Support placement preferences in stack deployment

Move of moby/moby#32743

Signed-off-by: Li Yi <denverdino@gmail.com>
This commit is contained in:
Li Yi
2017-05-06 21:49:42 +08:00
parent d844c487d4
commit b3459936db
7 changed files with 565 additions and 6 deletions

View File

@ -1,4 +1,4 @@
version: "3.2"
version: "3.3"
services:
foo:
@ -45,6 +45,8 @@ services:
window: 120s
placement:
constraints: [node=foo]
preferences:
- spread: node.labels.az
endpoint_mode: dnsrr
devices: