From 26b18fca09e0b35e4e58ee1203e498e88b14b59e Mon Sep 17 00:00:00 2001 From: Bryant Date: Mon, 27 Nov 2023 16:29:10 +0800 Subject: [PATCH] bug fix --- docker-compose.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4b33a82..9025ef9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,15 @@ -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' \ No newline at end of file +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' \ No newline at end of file