更新 docker-compose.yml
This commit is contained in:
parent
3129045a8c
commit
1902c52fba
|
@ -1,16 +1,28 @@
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
visualizer:
|
visualizer:
|
||||||
image: dockersamples/visualizer:stable
|
image: dockersamples/visualizer:stable
|
||||||
ports:
|
ports:
|
||||||
- "8001:8080"
|
- "8001:8080"
|
||||||
stop_grace_period: 1m30s
|
stop_grace_period: 1m30s
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
deploy:
|
deploy:
|
||||||
update_config:
|
update_config:
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
|
- 'node.role == manager'
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer:latest
|
||||||
|
ports:
|
||||||
|
- "8002:9000"
|
||||||
|
volumes:
|
||||||
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
deploy:
|
||||||
|
update_config:
|
||||||
|
failure_action: rollback
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
- 'node.role == manager'
|
- 'node.role == manager'
|
Loading…
Reference in New Issue