From 0360e165f479b184f1c7fe51644ef4c6bb261ffb Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Sun, 2 Jun 2024 17:59:47 +0800 Subject: [PATCH] Refactor librechat.yml to add placement constraints for libre-images and libre-logs --- swarm/librechat.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swarm/librechat.yml b/swarm/librechat.yml index 60fc6d6..4ea06d4 100644 --- a/swarm/librechat.yml +++ b/swarm/librechat.yml @@ -45,6 +45,10 @@ services: - net - traefik-public deploy: + placement: + constraints: + - node.labels.librechat.libre-images == true + - node.labels.librechat.libre-logs == true labels: - traefik.enable=true - traefik.docker.network=traefik-public