Files
Nexus/docs/changelog/2026-06-05-install-wizard-docker-redis.md
T
Nexus Deploy c81fe3183f fix(deploy): sync install.py into container for Redis env-check hotfix
sync-install-wizard-to-container.sh now copies server/api/install.py and
restarts Nexus so Docker installs pick up redis:6379 without full rebuild.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 02:34:53 +08:00

27 lines
874 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-06-05 — 安装向导 Docker Redis 检测修复
## 摘要
修复 Docker 部署下安装向导步骤 2 误报 `127.0.0.1:6379 Connection refused`
Compose 栈中 Redis 仅在容器内网 `redis:6379`,未映射宿主机端口。
## 变更
- `server/api/install.py``env-check` 读取 `NEXUS_REDIS_URL` / `REDIS_HOST`
- 返回 `docker_defaults`db_host=mysql, redis_host=redis 等)供步骤 3 预填
- `web/app/install.html`:环境检测后自动应用 `docker_defaults`
## 验证
- Docker 容器内 `env-check` Redis 应对 `redis:6379` 显示 ✓
- 步骤 3 数据库主机应为 `mysql`Redis 为 `redis`
## 已部署容器热修
```bash
cd /opt/nexus && git pull
bash deploy/sync-install-wizard-to-container.sh # 同步 install.html + install.py 并重启
```
无需完整 rebuild;若仍失败再 `bash deploy/nexus-1panel.sh upgrade`