🐛 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:
2026-09-24 16:09:26 +08:00
parent a548623ea5
commit 4373fafd55
10 changed files with 25 additions and 74 deletions
+2 -6
View File
@@ -2,11 +2,11 @@
#
# 一键启动:
# docker compose -f docker-compose.moldinsight.yml up -d
# 等价命令(profile 双保险):
# docker compose --profile moldinsight up -d
#
# 服务清单:moldinsight(独立 API)+ moldinsight-celery(异步分析 worker)
# 不含前端、不含 inventory。
# 注意:服务未声明 profiles(避免裸 up 报 "no service selected"),
# 模式切换唯一入口是 -f 文件名。
#
# 镜像说明:本文件里 moldinsight service 的 image 固定为 gemold-backend:latest,
# 与 deploy/Dockerfile.celery 的 FROM gemold-backend:latest 对齐;只要 build.sh
@@ -76,8 +76,6 @@ services:
- uploads_data:/app/uploads
- html_data:/app/html_output
restart: unless-stopped
profiles:
- moldinsight
networks:
- gemold_network
@@ -97,8 +95,6 @@ services:
depends_on:
- moldinsight
restart: unless-stopped
profiles:
- moldinsight
networks:
- gemold_network