Files
Nexus/docs/changelog/2026-06-05-external-redis-no-compose.md
T
Nexus Deploy 6276ea08b7 feat(docker): remove bundled Redis; use external host install
Compose stack is MySQL+Nexus only; wizard Redis check is non-blocking
and defaults to host.docker.internal for self-managed Redis.

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

32 lines
1.1 KiB
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-compose.prod.yml` **不再附带 Redis 容器**
Redis 由用户在宿主机或 1Panel 应用商店自行安装;Nexus 默认连 `host.docker.internal:6379`
## 变更
- `docker/docker-compose.prod.yml` — 删除 `redis` 服务与 `redis-data`
- `docker/entrypoint.sh` — 安装向导阶段不等待 Redis;否则有限次等待外置 Redis
- `server/api/install.py` — Redis 环境检测改为**不阻塞**(`pass: true`
- `deploy/README-1panel.md` — 补充 Redis 自建说明
- `docker/.env.prod.example` — 增加 `NEXUS_REDIS_URL`
## 迁移(已装旧栈)
```bash
cd /opt/nexus && git pull
docker stop nexus-prod-redis-1 2>/dev/null; docker rm nexus-prod-redis-1 2>/dev/null
# 在宿主机/1Panel 安装 Redis 并监听 6379
docker compose -f docker/docker-compose.prod.yml \
--env-file docker/.env.prod \
--env-file docker/profiles/$(cat docker/.host-profile).env \
up -d --build
```
## 安装向导
- DockerRedis 主机 `host.docker.internal`,端口 `6379`
- 步骤 2 Redis 未连接也可继续