Refactor swarm configuration: Update Traefik network labels from 'traefik.docker.network' to 'traefik.swarm.network' across multiple service files

This commit is contained in:
2024-12-28 17:31:54 +08:00
parent 955b4dab13
commit 52ec39de79
28 changed files with 50 additions and 49 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ services:
# - node.labels.emqx1.emqx-data1 == true
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.swarm.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.tcp.routers.emqx1-tcp-mqtt.entrypoints=mqtt
- traefik.tcp.routers.emqx1-tcp-mqtt.rule=HostSNI(`*`)
@@ -68,7 +68,7 @@ services:
deploy:
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.swarm.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.mqttx-web.entrypoints=https
- traefik.http.routers.mqttx-web.rule=Host(`mqttx.${DOMAIN}`)