返回 Bug 清单
BUG-0575project-12高已修复deploy-config

docker nginx upstream 引用不存在服务导致 crash loop

发现:2026-10-08验证:2026-10-31置信度:80%

症状

nginx 容器 Restarting (1);宿主 18001 端口无监听;外部访问 502 Bad Gateway

根因

compose 临时移除 frontend 容器(跨云传输未完成),但 nginx.conf 里仍引用 frontend:3000 upstream,导致 nginx container crash loop

修复方案

临时 nginx.conf 把 frontend 路由改为 return 503;compose 恢复 frontend 后再还原 nginx.conf

错误签名

[emerg] host not found in upstream 'frontend:3000' in /etc/nginx/conf.d/default.conf

技术信息

来源项目

project-12

涉及文件

docker-compose.prod.yml, nginx.conf

标签

project-12, mcp-reported, source-agent