From 5859b98a20d5d638a6570b527ccc7f1791de1eb3 Mon Sep 17 00:00:00 2001 From: furyhawk Date: Sat, 28 Dec 2024 19:12:52 +0800 Subject: [PATCH] Refactor swarm/core.yml: Add Traefik load balancing label for service configuration --- swarm/core.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/swarm/core.yml b/swarm/core.yml index e830d0b..015a037 100644 --- a/swarm/core.yml +++ b/swarm/core.yml @@ -40,6 +40,7 @@ services: labels: # Enable Traefik for this service, to make it available in the public network - traefik.enable=true + - traefik.swarm.lbswarm=true # Use the traefik-public network (declared below) - traefik.swarm.network=traefik-public # Use the custom label "traefik.constraint-label=traefik-public"