Commit d8de7fa
feat: 实现 Docker 一键部署方案
## 主要更新
### Docker Compose 配置
- 完整的 docker-compose.yml 编排文件
- 6个服务: MySQL, Redis, Prometheus, Pushgateway, API, Web
- 健康检查和服务依赖管理
- 数据持久化到本地目录
### MySQL 配置
- 自动初始化数据库和认证方式
- caching_sha2_password 认证插件配置
- MySQL 8.0 性能优化配置
### 配置文件适配
- API/Web/Prometheus 配置适配容器环境
- 服务间通过容器名通信
- 网络隔离和端口映射
### 新增文件
- docker/.env - 环境变量配置
- docker/README.md - 详细部署文档
- mysql/init.sql - MySQL 认证初始化
- mysql/conf.d/my.cnf - MySQL 配置
- redis/redis.conf - Redis 配置
## 使用方式
```bash
cd docker
docker-compose up -d
```
访问地址: http://localhost:8080
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent df07359 commit d8de7fa
File tree
21 files changed
+1546
-1050
lines changed- api
- docker
- api
- mysql
- conf.d
- prometheus
- redis
- web
- web
21 files changed
+1546
-1050
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
| 238 | + | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
This file was deleted.
This file was deleted.
Binary file not shown.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
This file was deleted.
0 commit comments