From 8666fce704d4f2a32917086cfa4935a0ad88aa63 Mon Sep 17 00:00:00 2001 From: Mano Marks Date: Wed, 25 Jan 2017 12:29:38 -0800 Subject: [PATCH] adding a placement constraint on visualizer so it runs on a manager node --- docker-stack.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-stack.yml b/docker-stack.yml index ebc2d6b..8a7c608 100644 --- a/docker-stack.yml +++ b/docker-stack.yml @@ -77,10 +77,13 @@ services: stop_grace_period: 1m30s volumes: - "/var/run/docker.sock:/var/run/docker.sock" + deploy: + placement: + constraints: [node.role == manager] networks: frontend: backend: volumes: - db-data: \ No newline at end of file + db-data: