28 lines
693 B
YAML
28 lines
693 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
visualizer:
|
|
image: dockersamples/visualizer:stable
|
|
ports:
|
|
- "8001:8080"
|
|
stop_grace_period: 1m30s
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
|
deploy:
|
|
update_config:
|
|
failure_action: rollback
|
|
placement:
|
|
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' |