From d8995264f5a845c68090c79c707b2eb0329f6e7a Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 10 Jul 2024 22:42:23 -0600 Subject: [PATCH] feat: add constraint to be only on the manager node --- public/canary.sh | 1 + public/feature.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/public/canary.sh b/public/canary.sh index 226e68d..94804bc 100644 --- a/public/canary.sh +++ b/public/canary.sh @@ -73,6 +73,7 @@ docker service create \ --publish published=3000,target=3000,mode=host \ --update-parallelism 1 \ --update-order stop-first \ + --constraint 'node.role == manager' \ -e RELEASE_TAG=canary \ dokploy/dokploy:canary diff --git a/public/feature.sh b/public/feature.sh index 6899373..b684785 100644 --- a/public/feature.sh +++ b/public/feature.sh @@ -73,6 +73,7 @@ docker service create \ --publish published=3000,target=3000,mode=host \ --update-parallelism 1 \ --update-order stop-first \ + --constraint 'node.role == manager' \ -e RELEASE_TAG=feature \ dokploy/dokploy:feature