🐛 fix(deploy): 移除服务 profiles——裸 up / 裸 -f 恢复一键可用
compose 规则:声明了 profiles 的服务在不带 --profile 时永远不会被选中。 拆分首版保留 profiles(双保险设计)导致部署机实测 docker compose up -d 与 -f <file> up -d 均报 "no service selected",与"一键部署、换文件名换 模式"的核心诉求互斥,故彻底移除: - 三个 compose 文件的全部 services 去掉 profiles 块,模式切换唯一入口 = -f 文件名 - 历史 --profile full/moldinsight/inventory 写法随之失效(目标服务本就已 移出默认文件,兼容无意义);文档/构建脚本提示/STATUS 日志同步改为失效声明 - frontend/README 移除"仅起前端"用法(前端反代依赖 unified backend,推荐整栈) Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
#
|
||||
# 一键启动:
|
||||
# docker compose -f docker-compose.inventory.yml up -d
|
||||
# 等价命令(profile 双保险):
|
||||
# docker compose --profile inventory up -d
|
||||
#
|
||||
# 服务清单:仅 inventory 后端
|
||||
# 不含前端、不含 moldinsight、不含 Celery worker。
|
||||
#
|
||||
# 基础设施:仅依赖 PostgreSQL + Redis;不依赖 RustFS / MinIO 对象存储,
|
||||
# 不挂 uploads/html 命名卷(inventory 无文件分析链路)。
|
||||
# 注意:服务未声明 profiles(避免裸 up 报 "no service selected"),
|
||||
# 模式切换唯一入口是 -f 文件名。
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
# 公共环境变量(inventory 子集:DB / Redis / 认证 / 启动参数)
|
||||
@@ -49,8 +49,6 @@ services:
|
||||
ADMIN_FULL_NAME: ${ADMIN_FULL_NAME:-系统管理员}
|
||||
AUTO_MIGRATE: ${AUTO_MIGRATE:-true}
|
||||
restart: unless-stopped
|
||||
profiles:
|
||||
- inventory
|
||||
networks:
|
||||
- gemold_network
|
||||
|
||||
|
||||
Reference in New Issue
Block a user