更新 Dockerfile 和新增 docker-compose.yml 文件

This commit is contained in:
2026-04-30 15:49:26 +08:00
parent 0d567644c8
commit e5d780efce
3 changed files with 24 additions and 3 deletions
+21
View File
@@ -201,6 +201,27 @@ bun install
bun run start:prod
```
### Docker Compose 启动
项目根目录已提供 `Dockerfile``docker-compose.yml`,可直接使用:
```bash
cd TJWaterAgent
docker compose up -d --build
```
查看日志:
```bash
docker compose logs -f tjwater-agent
```
停止并清理容器:
```bash
docker compose down
```
### 常用脚本
| 命令 | 作用 |