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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user