From e65cf2ce2c90f60187fc6b47d42ea75b9668842d Mon Sep 17 00:00:00 2001 From: furyhawk Date: Sat, 10 Jan 2026 22:06:05 +0800 Subject: [PATCH] feat: add placement constraints for open_webui service in deployment --- swarm/openwebui.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/swarm/openwebui.yml b/swarm/openwebui.yml index f9b7a17..cd68c50 100644 --- a/swarm/openwebui.yml +++ b/swarm/openwebui.yml @@ -40,6 +40,9 @@ services: - net - traefik-public deploy: + placement: + constraints: + - node.labels.open_webui.open_webui == true labels: - traefik.enable=true - traefik.swarm.network=traefik-public @@ -68,6 +71,9 @@ services: networks: - net deploy: + placement: + constraints: + - node.labels.open_webui.open_webui == true replicas: 1 restart_policy: condition: any @@ -83,6 +89,9 @@ services: networks: - net deploy: + placement: + constraints: + - node.labels.open_webui.open_webui == true replicas: 1 restart_policy: condition: any