From 878ebf15413a582f95454a613b8adf66afbba5f2 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Tue, 9 Sep 2025 04:43:58 +0200 Subject: [PATCH] fix: add Traefik network labels for API and web routers in Docker Compose --- compose.prod.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose.prod.yml b/compose.prod.yml index 9e3aa9f..41e2f7e 100644 --- a/compose.prod.yml +++ b/compose.prod.yml @@ -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"