Skip to content

Commit 345943f

Browse files
authored
docs: update readme
1 parent 3aa4474 commit 345943f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

readme.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Mysql
1616

1717
## 日记
18-
日记默认保存在 `./logs/Hitokoto-api.log`
18+
日记默认保存在 `./data/logs/Hitokoto-api.log`
1919

2020
## 开始使用
2121
### 常规使用
@@ -27,4 +27,12 @@
2727
5. 启动程序 `yarn start`
2828

2929
### 容器使用
30-
待补充
30+
* 常规使用(需要预先安装好 redis),由于使用共享网络,请留意 8000 端口是否被占用。
31+
```shell
32+
docker run \
33+
-v /path/to/your/data/dir:/usr/src/app/data \
34+
--network host \
35+
hitokoto/api
36+
```
37+
其他高深玩法(比如说不共享网络),还请自己摸索。
38+
* 我们提供 docker-compose 配置(提供 redis 依赖),有需要的可以自行下载使用。

0 commit comments

Comments
 (0)