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
All checks were successful
Build and Deploy Thoughts / build-and-deploy-local (push) Successful in 17s
This commit is contained in:
@@ -43,6 +43,7 @@ services:
|
||||
- internal
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=traefik"
|
||||
# Create a router for the API
|
||||
- "traefik.http.routers.thoughts-api.rule=Host(`thoughts.gabrielkaszewski.dev`) && PathPrefix(`/api`)"
|
||||
- "traefik.http.routers.thoughts-api.entrypoints=web,websecure"
|
||||
@@ -74,6 +75,7 @@ services:
|
||||
- internal
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=traefik"
|
||||
# Create a router for the main web traffic
|
||||
- "traefik.http.routers.thoughts-web.rule=Host(`thoughts.gabrielkaszewski.dev`)"
|
||||
- "traefik.http.routers.thoughts-web.entrypoints=web,websecure"
|
||||
|
Reference in New Issue
Block a user