更新 docker-compose.yml

This commit is contained in:
Bryant 2024-01-25 15:11:23 +08:00
parent 3129045a8c
commit 1902c52fba
1 changed files with 27 additions and 15 deletions

View File

@ -14,3 +14,15 @@ services:
placement: placement:
constraints: constraints:
- 'node.role == manager' - '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'