Refactor swarm/core.yml: Add Traefik load balancing label for service configuration
This commit is contained in:
@@ -40,6 +40,7 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
# Enable Traefik for this service, to make it available in the public network
|
# Enable Traefik for this service, to make it available in the public network
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
|
- traefik.swarm.lbswarm=true
|
||||||
# Use the traefik-public network (declared below)
|
# Use the traefik-public network (declared below)
|
||||||
- traefik.swarm.network=traefik-public
|
- traefik.swarm.network=traefik-public
|
||||||
# Use the custom label "traefik.constraint-label=traefik-public"
|
# Use the custom label "traefik.constraint-label=traefik-public"
|
||||||
|
|||||||
Reference in New Issue
Block a user