fix: add Traefik network labels for API and web routers in Docker Compose
All checks were successful
Build and Deploy Thoughts / build-and-deploy-local (push) Successful in 17s

This commit is contained in:
2025-09-09 04:43:58 +02:00
parent c9775293c0
commit 878ebf1541

View File

@@ -43,6 +43,7 @@ services:
- internal - internal
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=traefik"
# Create a router for the API # Create a router for the API
- "traefik.http.routers.thoughts-api.rule=Host(`thoughts.gabrielkaszewski.dev`) && PathPrefix(`/api`)" - "traefik.http.routers.thoughts-api.rule=Host(`thoughts.gabrielkaszewski.dev`) && PathPrefix(`/api`)"
- "traefik.http.routers.thoughts-api.entrypoints=web,websecure" - "traefik.http.routers.thoughts-api.entrypoints=web,websecure"
@@ -74,6 +75,7 @@ services:
- internal - internal
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=traefik"
# Create a router for the main web traffic # Create a router for the main web traffic
- "traefik.http.routers.thoughts-web.rule=Host(`thoughts.gabrielkaszewski.dev`)" - "traefik.http.routers.thoughts-web.rule=Host(`thoughts.gabrielkaszewski.dev`)"
- "traefik.http.routers.thoughts-web.entrypoints=web,websecure" - "traefik.http.routers.thoughts-web.entrypoints=web,websecure"