-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.dev-full.yml
More file actions
36 lines (32 loc) · 1.53 KB
/
docker-compose.dev-full.yml
File metadata and controls
36 lines (32 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Docker Compose override for dev-full mode
# When running services natively on host, Kong needs to route to host.docker.internal
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev-full.yml up -d
services:
llm-api:
environment:
# Use Docker-internal hostname for server-to-server communication
KEYCLOAK_BASE_URL: http://keycloak:8085
# Use public host for browser redirects (public-facing)
KEYCLOAK_PUBLIC_URL: ${KEYCLOAK_PUBLIC_URL:-http://localhost:8085}
ISSUER: ${ISSUER:-http://localhost:8085/realms/jan}
# JWKS_URL uses Docker-internal hostname for token validation
JWKS_URL: http://keycloak:8085/realms/jan/protocol/openid-connect/certs
kong:
environment:
KONG_DECLARATIVE_CONFIG: /kong/kong-dev-full.yml
volumes:
- ./integrations/kong/kong-dev-full.yml:/kong/kong-dev-full.yml:ro
- ./integrations/kong/plugins/keycloak-apikey:/opt/kong-plugins/kong/plugins/keycloak-apikey:ro
platform:
environment:
# Use public host for browser access in dev mode
NEXT_PUBLIC_JAN_BASE_URL: ${KONG_PUBLIC_URL:-http://localhost:8000}
web:
build:
args:
# Use public host for browser access in dev mode
JAN_API_BASE_URL: ${KONG_PUBLIC_URL:-http://localhost:8000/}
VITE_AUTH_URL: ${KEYCLOAK_PUBLIC_URL:-http://localhost:8085/}
VITE_AUTH_REALM: ${KEYCLOAK_REALM:-jan}
VITE_AUTH_CLIENT_ID: ${TARGET_CLIENT_ID:-jan-client}
VITE_OAUTH_REDIRECT_URI: ${WEB_OAUTH_REDIRECT_URI:-http://localhost:3001/auth/callback}