From d53ab169ac9a65ccf5094a9784f9d4fc3c55c0fe Mon Sep 17 00:00:00 2001 From: Mano Marks Date: Fri, 13 Jan 2017 18:15:26 -0800 Subject: [PATCH] adding placement restraint to add visualizer, must run on a manager --- docker-stack.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-stack.yml b/docker-stack.yml index 09fecd8..ebc2d6b 100644 --- a/docker-stack.yml +++ b/docker-stack.yml @@ -67,6 +67,8 @@ services: delay: 10s max_attempts: 3 window: 120s + placement: + constraints: [node.role == manager] visualizer: image: dockersamples/visualizer:stable