Skip to content

Commit d53ab16

Browse files
committed
adding placement restraint to add visualizer, must run on a manager
1 parent a34564c commit d53ab16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-stack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ services:
6767
delay: 10s
6868
max_attempts: 3
6969
window: 120s
70+
placement:
71+
constraints: [node.role == manager]
7072

7173
visualizer:
7274
image: dockersamples/visualizer:stable

0 commit comments

Comments
 (0)