This commit is contained in:
BBIT-Kai
2025-10-22 13:54:10 +08:00
parent e81b2e9c20
commit 64262c4432
9 changed files with 144 additions and 164 deletions
+72 -2
View File
@@ -2,11 +2,13 @@
## 一、技术栈
- ### 部署
- ### 运维
- **Docker**:项目部署
- **Nginx**:前端项目部署
- **Kong**: 网关
- **Prometheus**:服务监控
- **Grafana**:数据可视化
- ### 前端
@@ -154,7 +156,75 @@ docker compose up -d
docker image prune -f
```
## 四、其他
## 四、配置
- 安装顺序
1. 安装docker
2. 运行基本环境infra-compose.yaml
3. 安装Harbor
4. 推送镜像
5. 运行前后端程序docker-compose.yaml
- Harbor
1. 添加用户
2. 添加仓库
3. 添加仓库用户使用权限
4. (2x客户端)登录
```
docker login http://s1.ronsunny.cn:13011
```
- Prometheus
1. 设置docker metrics配置文件
```
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://mirror.baidubce.com",
"https://docker.nju.edu.cn"
],
"metrics-addr": "10.10.10.9:9323",
"experimental": true,
"insecure-registries": ["s1.ronsunny.cn:13011"]
}
```
2. 重启docker
```
sudo systemctl restart docker
```
- RabbitMQ
1. 添加用户
2. 添加Vhost
- [Grafana][https://grafana.com/grafana/dashboards/]
1. 创建Prometheus数据源
2. 增加配置
| 项目 | 代码 | 描述 |
| ----------- | ----- | ---- |
| MinIO | 13502 | |
| Docker | 9621 | |
| PostgreSQL | 9628 | |
| 主机 | 1860 | |
| RabbitMQ | 10991 | |
| Redis | 11835 | |
| Prometheus | 19268 | |
| 主机 中文版 | 8919 | |
## 五、其他
### 旧部署