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
+4 -4
View File
@@ -87,7 +87,7 @@ services:
memory: 64M
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.swarm.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.swarmprom-grafana-https.rule=Host(`grafana.${DOMAIN?Variable not set}`)
- traefik.http.routers.swarmprom-grafana-https.entrypoints=https
@@ -123,7 +123,7 @@ services:
memory: 64M
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.swarm.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.swarmprom-alertmanager-https.rule=Host(`alertmanager.${DOMAIN?Variable not set}`)
- traefik.http.routers.swarmprom-alertmanager-https.entrypoints=https
@@ -146,7 +146,7 @@ services:
replicas: 1
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.swarm.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.swarmprom-unsee-https.rule=Host(`unsee.${DOMAIN?Variable not set}`)
- traefik.http.routers.swarmprom-unsee-https.entrypoints=https
@@ -211,7 +211,7 @@ services:
memory: 128M
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.swarm.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.swarmprom-prometheus-https.rule=Host(`prometheus.${DOMAIN?Variable not set}`)
- traefik.http.routers.swarmprom-prometheus-https.entrypoints=https