Commit acd73975 by imwangxiaozhou

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

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