🔧 build(deploy): 端口默认值统一 10003/10004——前端入口固定 10003
约定"容器内部端口无所谓,重要的是宿主机端口;前端 = 10003"。 - .env.example 端口段重写:移除冗余 HOST/PORT(uvicorn 命令硬编码, 无人读 env)+ 移除误导注释;FRONTEND_PORT/BACKEND_PORT/MOLDINSIGHT_PORT 默认 10003,INVENTORY_PORT 默认 10004 - docker-compose.yml frontend 默认 80→10003、backend 8000→10003,删除 backend service 内冗余 HOST/PORT env - docker-compose.moldinsight.yml / docker-compose.inventory.yml 默认 端口同步 - DEPLOY_PORT §3 / PORT_CONFIG §1 §2 端口映射示例同步 - STATUS 补录 验证:yaml 渲染端口映射 unified frontend 10003→80、backend 10003→8000, moldinsight 10003→8000,inventory 10004→8001。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
+11
-15
@@ -1,22 +1,18 @@
|
||||
# 服务配置
|
||||
HOST=0.0.0.0
|
||||
|
||||
# ================================
|
||||
# 模块 API 对外端口
|
||||
# 端口配置 — 唯一修改宿主机端口的地方
|
||||
# ================================
|
||||
# 前端 Nginx 对外端口
|
||||
FRONTEND_PORT=80
|
||||
# unified backend 对外端口
|
||||
BACKEND_PORT=8000
|
||||
# gemold(moldinsight)API 对外端口(独立部署时使用)
|
||||
MOLDINSIGHT_PORT=8000
|
||||
# inventory API 对外端口(独立部署时使用)
|
||||
INVENTORY_PORT=8001
|
||||
# 容器内部端口无所谓,重要的是映射到宿主机的端口。
|
||||
# 约定:前端页面 = 10003;后端 API 不直接暴露(仅经前端 Nginx 反代)。
|
||||
# gemold(moldinsight)API 对外端口(仅 moldinsight-only / 直接调试时用)
|
||||
MOLDINSIGHT_PORT=10003
|
||||
# inventory API 对外端口(仅 inventory-only 模式用)
|
||||
INVENTORY_PORT=10004
|
||||
# unified 模式下 frontend Nginx 对外端口(即浏览器入口)
|
||||
FRONTEND_PORT=10003
|
||||
# 兼容旧字段名(部分部署脚本仍引用)
|
||||
BACKEND_PORT=10003
|
||||
# ================================
|
||||
|
||||
# 应用内部监听端口(通常无需修改;compose 内已固定为 8000/8001)
|
||||
PORT=8000
|
||||
|
||||
DEBUG=false
|
||||
|
||||
# 日志配置
|
||||
|
||||
Reference in New Issue
Block a user