docs: update Docker deployment guide and compose config
- Update docker-compose.yml: use hermes-agent internal hostname for UPSTREAM, expose ports 8642-8670, add server data volume mapping - Rewrite docs/docker.md with pre-built image usage, env var table, data persistence (token location), port mapping, and common operations - Update README.md and README_zh.md Docker section with pre-built image instructions and token location Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+7
-10
@@ -163,25 +163,22 @@ hermes-web-ui start
|
||||
使用仓库内置的 compose 文件联合运行 Hermes Agent + Web UI:
|
||||
|
||||
```bash
|
||||
# 使用预构建镜像(推荐)
|
||||
WEBUI_IMAGE=ekkoye8888/hermes-web-ui:latest docker compose up -d hermes-agent hermes-webui
|
||||
|
||||
# 或从源码构建
|
||||
docker compose up -d --build hermes-agent hermes-webui
|
||||
|
||||
docker compose logs -f hermes-webui
|
||||
```
|
||||
|
||||
打开 **http://localhost:6060**
|
||||
|
||||
- Hermes 持久化数据目录:`./hermes_data`
|
||||
- Web UI 服务镜像由本仓库 `Dockerfile` 本地构建
|
||||
- Web UI 认证 Token 存储在 `./hermes_data/hermes-web-ui-data/.token`
|
||||
- 首次启动并开启认证时,Token 会打印到容器日志中
|
||||
- 运行参数全部由 `docker-compose.yml` 环境变量驱动
|
||||
|
||||
可直接在命令行覆盖 compose 变量(不依赖 `.env` 文件):
|
||||
|
||||
```bash
|
||||
PORT=16060 \
|
||||
UPSTREAM=http://127.0.0.1:8642 \
|
||||
HERMES_BIN=/opt/hermes/.venv/bin/hermes \
|
||||
docker compose up -d --build hermes-agent hermes-webui
|
||||
```
|
||||
|
||||
更详细的说明与排错见:[`docs/docker.md`](./docs/docker.md)
|
||||
|
||||
### CLI 命令
|
||||
|
||||
Reference in New Issue
Block a user