This commit is contained in:
Bryant 2023-11-27 16:29:10 +08:00
parent 0918417f09
commit 26b18fca09
1 changed files with 15 additions and 12 deletions

View File

@ -1,12 +1,15 @@
visualizer: version: "3.8"
image: dockersamples/visualizer:stable
ports: services:
- "8001:8080" visualizer:
stop_grace_period: 1m30s image: dockersamples/visualizer:stable
volumes: - "/var/run/docker.sock:/var/run/docker.sock" ports:
deploy: - "8001:8080"
update_config: stop_grace_period: 1m30s
failure_action: rollback volumes: - "/var/run/docker.sock:/var/run/docker.sock"
placement: deploy:
constraints: update_config:
- 'node.role == manager' failure_action: rollback
placement:
constraints:
- 'node.role == manager'