topfans/docker
zerosaturation 7bf4666cdb fix:restart 命令卡死问题
deploy.sh restart 命令原本 down && up --force-recreate + sleep 10,
在以下场景会卡死:
1) docker-compose up 中途异常退出,server-side 进程没回传 EOF,
   本地 ssh 客户端没设 ServerAliveInterval,死链检测不到,
   ssh 进程挂 25+ 分钟不退出 (2026-07-21 实测)
2) up --wait 等所有服务 healthy 才返回,但本 compose 里有
   oss-cors-init (restart: no, exited(0) 永远不 running) +
   moderationservice/notificationservice healthcheck 写错,
   永远卡住

修改:
- ssh_cmd / ssh_cmd_batch / scp_cmd 加 ServerAliveInterval=30 +
  ServerAliveCountMax=3,死链 90s 主动断
- restart 去掉前置 docker-compose down (up --force-recreate 自带 stop+create)
- restart 去掉末尾 sleep 10,改 polling gateway healthy (timeout 180s)

端到端实测 1:19 通过。

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-21 12:12:27 +08:00
..
sql/migrations
.env
.env.local
.env.prod feat:修改周边验证 2026-07-17 16:53:57 +08:00
build.sh
cleanup-logs.sh
deploy.sh fix:restart 命令卡死问题 2026-07-21 12:12:27 +08:00
dify-deploy.sh feat:去掉无用的函数方法 2026-07-09 16:08:25 +08:00
docker-compose.local.yml
docker-compose.prod.yml fix:修改合并后bug 2026-07-06 10:25:06 +08:00
Dockerfile.services
init-db.sql
SCHEMA_DIFF_REPORT.txt
start.sh
快速配置更新指南.md