Add traefik.docker.network label to fix routing
Containers are on multiple networks (breakpilot-network, coolify, gokocgws...). Without traefik.docker.network, Traefik randomly picks a network and may choose breakpilot-network where it has no access. This label forces Traefik to always use the coolify network. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -31,6 +31,8 @@ services:
|
||||
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-https://api-compliance.breakpilot.ai}
|
||||
NEXT_PUBLIC_SDK_URL: ${NEXT_PUBLIC_SDK_URL:-https://sdk.breakpilot.ai}
|
||||
container_name: bp-compliance-admin
|
||||
labels:
|
||||
- "traefik.docker.network=coolify"
|
||||
expose:
|
||||
- "3000"
|
||||
environment:
|
||||
@@ -60,6 +62,8 @@ services:
|
||||
context: ./developer-portal
|
||||
dockerfile: Dockerfile
|
||||
container_name: bp-compliance-developer-portal
|
||||
labels:
|
||||
- "traefik.docker.network=coolify"
|
||||
expose:
|
||||
- "3000"
|
||||
environment:
|
||||
@@ -83,6 +87,8 @@ services:
|
||||
context: ./backend-compliance
|
||||
dockerfile: Dockerfile
|
||||
container_name: bp-compliance-backend
|
||||
labels:
|
||||
- "traefik.docker.network=coolify"
|
||||
expose:
|
||||
- "8002"
|
||||
environment:
|
||||
@@ -126,6 +132,8 @@ services:
|
||||
context: ./ai-compliance-sdk
|
||||
dockerfile: Dockerfile
|
||||
container_name: bp-compliance-ai-sdk
|
||||
labels:
|
||||
- "traefik.docker.network=coolify"
|
||||
expose:
|
||||
- "8090"
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user