Update Traefik network configuration in swarm-compose.yml to use 'traefik.swarm.network' instead of 'traefik.docker.network' for improved clarity and consistency in service routing.

This commit is contained in:
2025-12-22 17:06:20 -05:00
parent 436bb671d6
commit 64bc42e6a8

View File

@@ -166,7 +166,7 @@ services:
<<: *deploy_default
labels:
- "traefik.enable=true"
- "traefik.docker.network=public"
- "traefik.swarm.network=public"
- "traefik.http.routers.seafile.rule=Host(`sf.lab`)"
- "traefik.http.routers.seafile.entrypoints=web"
- "traefik.http.services.seafile.loadbalancer.server.port=80"
@@ -197,7 +197,7 @@ services:
<<: *deploy_default
labels:
- "traefik.enable=true"
- "traefik.docker.network=public"
- "traefik.swarm.network=public"
# Route Seadoc endpoints on the same host:
- "traefik.http.routers.seadoc.rule=Host(`sf.lab`) && (PathPrefix(`/socket.io`) || PathPrefix(`/sdoc-server`))"
- "traefik.http.routers.seadoc.entrypoints=web"