Commit acd73975 by imwangxiaozhou

chore(config, docker): 调整服务端口与Docker配置适配本地开发

统一调整前后端服务端口配置,更新前端API代理目标地址;修正Docker Compose的端口映射,固定MySQL镜像版本为8.0.28并移除无用的顶层版本字段。
1 parent ce652399
......@@ -7,7 +7,7 @@ app:
name: "LLM Call Platform"
version: "1.0.0"
host: "0.0.0.0"
port: 8000
port: 8011
database:
# 数据库连接信息,推荐通过环境变量 LLMCP_DB_* 覆盖
......
......@@ -3,7 +3,7 @@
app:
host: "0.0.0.0"
port: 8000
port: 8011
database:
host: "192.168.3.92"
......
version: "3.8"
services:
api:
build: .
container_name: llm-call-platform
ports:
- "8000:8000"
- "8011:8011"
environment:
- LLMCP_DB_HOST=db
- LLMCP_DB_PORT=3306
......@@ -21,7 +19,7 @@ services:
restart: unless-stopped
db:
image: mysql:8.0
image: mysql:8.0.28
container_name: llm-call-platform-db
environment:
MYSQL_ROOT_PASSWORD: root_password
......
......@@ -29,4 +29,4 @@ asyncio.run(init())
# 启动 FastAPI 应用
echo "启动 LLM Call Platform..."
exec uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
exec uvicorn app.main:app --host 0.0.0.0 --port 8011 --workers 4
......@@ -6,10 +6,10 @@ export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
port: 5173,
port: 5273,
proxy: {
'/api': {
target: 'http://localhost:8000',
target: 'http://localhost:8011',
changeOrigin: true,
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!