From d42f369d0fd60087771c7a50660be78fe5948748 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Mon, 16 Feb 2026 17:17:34 +0100 Subject: [PATCH] updated docker compose --- docker-compose.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index f7a69ec..6e04096 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,7 @@ version: '3.8' services: + # --- Backend Service --- backend: build: context: ./backend @@ -19,12 +20,14 @@ services: labels: - "traefik.enable=true" - "traefik.docker.network=narl" - # Route /api, /admin, /static and /media traffic to the backend + # Explicitly set priority higher than the frontend to catch /api, /admin, etc. + - "traefik.http.routers.holy-backend.priority=20" - "traefik.http.routers.holy-backend.rule=Host(`holy.narl.io`) && (PathPrefix(`/api`) || PathPrefix(`/admin`) || PathPrefix(`/static`) || PathPrefix(`/media`))" - "traefik.http.routers.holy-backend.entrypoints=websecure" - "traefik.http.routers.holy-backend.tls.certresolver=https_resolver" - "traefik.http.services.holy-backend.loadbalancer.server.port=8000" + # --- Frontend Service --- frontend: build: context: ./frontend @@ -42,6 +45,8 @@ services: labels: - "traefik.enable=true" - "traefik.docker.network=narl" + # Frontend acts as the fallback for anything else on this domain + - "traefik.http.routers.holy-frontend.priority=10" - "traefik.http.routers.holy-frontend.rule=Host(`holy.narl.io`)" - "traefik.http.routers.holy-frontend.entrypoints=websecure" - "traefik.http.routers.holy-frontend.tls.certresolver=https_resolver"