flnxi-Wu/scripts/deploy/DEPLOYMENT_SUMMARY.md
WuYongJie d1c6efc79d
Some checks failed
CI Check / check (push) Has been cancelled
feat: NAS 部署与 Harbor 推送流程
2025-12-03 14:39:06 +08:00

106 lines
2.3 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.

# 部署总结
## 部署状态
✅ **部署成功**
- **应用地址**: http://45.249.208.118:4320
- **容器状态**: 运行中
- **构建状态**: 成功
- **部署时间**: 2025-11-11
## Docker 镜像加速配置
### 使用的镜像源
**镜像源**: `https://docker.m.daocloud.io`
此镜像源已测试可用,已配置到服务器 Docker daemon。
### 配置方法
服务器上的 Docker daemon.json 已配置为:
```json
{
"registry-mirrors": ["https://docker.m.daocloud.io"]
}
```
### 后续部署
后续部署时会自动使用此镜像源,无需再次配置。
如需重新配置,可以运行:
```powershell
.\scripts\deploy\setup-docker-mirror.ps1
```
## 部署脚本
### 主要部署脚本
- **`deploy-with-password.ps1`**: 完整部署脚本(包含密码支持)
- **`setup-docker-mirror.ps1`**: Docker 镜像源配置脚本
- **`rebuild-and-restart.ps1`**: 重新构建和重启容器脚本
### 使用方法
1. **完整部署**:
```powershell
.\scripts\deploy\deploy-with-password.ps1
```
2. **仅重新构建**:
```powershell
.\scripts\deploy\rebuild-and-restart.ps1
```
3. **配置镜像源**:
```powershell
.\scripts\deploy\setup-docker-mirror.ps1
```
## 构建说明
### 构建过程
1. ✅ 基础镜像拉取成功(使用镜像加速)
2. ✅ 依赖安装完成
3. ✅ Next.js 构建成功
4. ✅ Docker 镜像构建成功
5. ✅ 容器启动成功
### 构建警告
构建过程中出现 Prisma OpenSSL 警告,但不影响构建和运行:
- Prisma 无法检测 libssl 版本,使用默认配置
- 构建和运行时功能正常
## 服务器信息
- **服务器地址**: 45.249.208.118
- **SSH 用户**: root
- **项目路径**: /root/youyidian-3d
- **容器名称**: flnxi-material
- **应用端口**: 4320 (映射到容器内 3000)
## 后续操作
1. ✅ Docker 镜像源已配置
2. ✅ 部署脚本已准备就绪
3. ✅ 应用运行正常
## 注意事项
1. Docker 镜像源配置在 `/etc/docker/daemon.json`
2. 修改配置后需要重启 Docker 服务
3. 部署脚本会自动使用配置的镜像源
4. 如果镜像源不可用,Docker 会自动回退到 Docker Hub
## 更新记录
- 2025-11-11: 配置 `https://docker.m.daocloud.io` 为默认镜像源
- 2025-11-11: 成功部署应用
- 2025-11-11: 创建部署脚本和配置文档