修复前端开发环境登录 502 问题
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,8 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
- CHOKIDAR_USEPOLLING=true
|
||||
- VITE_API_BASE_URL=${VITE_API_BASE_URL:-http://host.docker.internal:80}
|
||||
# 走 Docker 网络容器名,规避 host.docker.internal 仅解析到 IPv6 导致的连接失败
|
||||
- VITE_API_BASE_URL=${VITE_API_BASE_URL:-http://api-gateway}
|
||||
ports:
|
||||
- "3000:5173"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user