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
+6 -6
View File
@@ -21,7 +21,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.api_server.entrypoints=https
- traefik.http.routers.api_server.rule=Host(`api.${DOMAIN}`)
@@ -49,7 +49,7 @@ services:
- node.role == manager
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.swarm.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.dozzle.entrypoints=https
- traefik.http.routers.dozzle.rule=Host(`log.${DOMAIN}`)
@@ -96,7 +96,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.minio-router.entrypoints=https
- traefik.http.routers.minio-router.rule=Host(`drive.${DOMAIN}`) || Host(`storage.${DOMAIN}`)
@@ -136,7 +136,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.osrm-backend.entrypoints=https
- traefik.http.routers.osrm-backend.rule=Host(`osrm.${DOMAIN}`)
@@ -177,7 +177,7 @@ services:
- node.labels.postgres.postgres_data == true
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.swarm.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.tcp.routers.postgres.entrypoints=postgres-socket
- traefik.tcp.routers.postgres.rule=HostSNI(`*`)
@@ -195,7 +195,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.whoami-rtr.entrypoints=https
- traefik.http.routers.whoami-rtr.rule=Host(`whoami.$DOMAIN`)