move visualizer to service and stack (#237)

This commit is contained in:
Bret Fisher
2018-05-08 10:51:40 -05:00
committed by Jérôme Petazzoni
parent 290185f16b
commit c8d73caacd
2 changed files with 22 additions and 11 deletions
+13
View File
@@ -0,0 +1,13 @@
version: "3"
services:
viz:
image: dockersamples/visualizer
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "8080:8080"
deploy:
placement:
constraints:
- node.role == manager