From d3778977292e1c4927a7a6885548d034b79098c5 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Mon, 15 Jan 2024 17:54:59 +0800 Subject: [PATCH] fix: update docker swarm config --- docker-compose-run.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose-run.yml b/docker-compose-run.yml index f05a2b9..780a1fc 100644 --- a/docker-compose-run.yml +++ b/docker-compose-run.yml @@ -8,11 +8,11 @@ services: - .apiflask.env ports: - target: 5000 - published: 7000 + published: 7100 mode: host deploy: mode: replicated - replicas: 2 + replicas: 1 update_config: parallelism: 1 failure_action: rollback @@ -23,7 +23,7 @@ services: window: 120s placement: constraints: - - 'node.role == worker' + - 'node.role == manager' networks: - pzx-web-api-network pzx-web-api-2: @@ -33,11 +33,11 @@ services: - .apiflask.env ports: - target: 5000 - published: 7010 + published: 7110 mode: host deploy: mode: replicated - replicas: 2 + replicas: 1 update_config: parallelism: 1 failure_action: rollback @@ -48,7 +48,7 @@ services: window: 120s placement: constraints: - - 'node.role == worker' + - 'node.role == manager' networks: - pzx-web-api-network