fix: 运行数据改用命名卷,避免 bind mount 属主导致的 PermissionError
This commit is contained in:
1 parent
bc3b95f800
commit
b19a071a6e
2 files changed
+13
-2
No files matched your search
@@ -85,7 +85,13 @@ curl -s localhost:52100/healthz | python3 -m json.tool
|
||||
| `healthcheck.py` | 容器健康检查(判断是否还在轮询) |
|
||||
| `tests/test_core.py` | 22 项单元测试,不联网 |
|
||||
|
||||
运行数据都在 `data/`(容器内 `/app/data`):`cookies.json`、`state.json`、`logs/monitor.log`。
|
||||
运行数据都在容器内 `/app/data`(compose 用命名卷 `fengxiang-data` 持久化):
|
||||
`cookies.json`、`state.json`、`logs/monitor.log`。查看/备份:
|
||||
|
||||
```bash
|
||||
docker volume inspect fengxiang-monitor_fengxiang-data # 宿主机实际路径
|
||||
docker exec fengxiang-monitor ls -l /app/data
|
||||
```
|
||||
|
||||
## 5. 管理接口
|
||||
|
||||
|
||||
Reference in new issue
Block a user