Add single domain gateway routing
This commit is contained in:
@@ -72,7 +72,7 @@ services:
|
||||
context: ./apps/user-client
|
||||
container_name: ai_kb_v2_user_client
|
||||
environment:
|
||||
VITE_API_BASE_URL: http://127.0.0.1:8100/api
|
||||
VITE_API_BASE_URL: /api
|
||||
ports:
|
||||
- "5173:5173"
|
||||
depends_on:
|
||||
@@ -83,12 +83,24 @@ services:
|
||||
context: ./apps/admin-web
|
||||
container_name: ai_kb_v2_admin_web
|
||||
environment:
|
||||
VITE_API_BASE_URL: http://127.0.0.1:8100/api
|
||||
VITE_API_BASE_URL: /api
|
||||
ports:
|
||||
- "5174:5174"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
gateway:
|
||||
image: nginx:1.27-alpine
|
||||
container_name: ai_kb_v2_gateway
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ./deploy/gateway.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
depends_on:
|
||||
- backend
|
||||
- user-client
|
||||
- admin-web
|
||||
|
||||
frpc:
|
||||
build:
|
||||
context: .
|
||||
@@ -99,11 +111,11 @@ services:
|
||||
FRP_SERVER_PORT: ${FRP_SERVER_PORT:-7000}
|
||||
FRP_AUTH_TOKEN: ${FRP_AUTH_TOKEN}
|
||||
FRP_PROXY_NAME: ${FRP_PROXY_NAME:-qa-backend}
|
||||
FRP_LOCAL_IP: ${FRP_LOCAL_IP:-backend}
|
||||
FRP_LOCAL_PORT: ${FRP_LOCAL_PORT:-8100}
|
||||
FRP_LOCAL_IP: ${FRP_LOCAL_IP:-gateway}
|
||||
FRP_LOCAL_PORT: ${FRP_LOCAL_PORT:-80}
|
||||
FRP_CUSTOM_DOMAINS: ${FRP_CUSTOM_DOMAINS}
|
||||
depends_on:
|
||||
- backend
|
||||
- gateway
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user