Skip to content

Commit

Permalink
✨ 更新
Browse files Browse the repository at this point in the history
  • Loading branch information
SilianZ committed Mar 9, 2024
1 parent fcbd8fa commit 4a9044f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
3. 运行一次主程序生成配置文件:

```sh
python main.py
python ./container/main.py
```

4. 在 `config.properties` 中,填写你的 `cluster.id`(即 `CLUSTER_ID`)和 `cluster.secret`(即 `CLUSTER_SECRET`)。
Expand All @@ -65,14 +65,22 @@ docker pull silianz/python-openbmclapi:latest

```sh
docker run -d \
-v /data/python-openbmclapi:/python-openbmclapi/cache \
-v /path/to/your/config:/python-openbmclapi/config/config.properties \
-v ${/data/python-openbmclapi}:/python-openbmclapi/container/cache \
-v ${/path/to/your/config}:/python-openbmclapi/config/config.properties \
-p ${web.port}:${web.port} \
--restart always \
--name python-openbmclapi \
silianz/python-openbmclapi
```

参数说明:

`web.port` - 对外开放的端口。

`/path/to/your/config` - 配置文件(你需要从此仓库中下载 `config/config.properties.example` 并重命名为 `config.properties` 来进行配置)的存放路径。

`/data/python-openbmclapi` - `cache` 文件夹挂载的路径。

> Docker 容器仍在实验中,还未发布。

# 鸣谢
Expand Down

0 comments on commit 4a9044f

Please sign in to comment.