fix docker defaults to writable /data config path and align docs

This commit is contained in:
CJACK.
2026-04-29 13:46:22 +08:00
parent d7125ea106
commit 2c8409dcbb
9 changed files with 35 additions and 7 deletions

View File

@@ -245,6 +245,7 @@ docker-compose logs -f
```
默认 `docker-compose.yml` 会把宿主机 `6011` 映射到容器内的 `5001`。如果你希望直接对外暴露 `5001`,请设置 `DS2API_HOST_PORT=5001`(或者手动调整 `ports` 配置)。
同时默认把 `./config.json` 挂载到容器 `/data/config.json`,并设置 `DS2API_CONFIG_PATH=/data/config.json`,用于避免 `/app` 只读导致运行时 token 持久化失败。
更新镜像:`docker-compose up -d --build`