Refactor swarm/core.yml: Add Traefik load balancing label for service configuration

This commit is contained in:
2024-12-28 19:12:52 +08:00
parent 52ec39de79
commit 5859b98a20
+1
View File
@@ -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"