Skip to content

Commit

Permalink
adding a placement constraint on visualizer so it runs on a manager node
Browse files Browse the repository at this point in the history
  • Loading branch information
ManoMarks committed Jan 25, 2017
1 parent a01d01d commit 8666fce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
db-data:

0 comments on commit 8666fce

Please sign in to comment.