Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deploy.md #161

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/sentence/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,17 @@ hitokoto/api:latest

嗯,启动完毕。是不是很简单呢?

其他启动方式你可以自己摸索一下,比如说,不用 host 网络怎么运行。
下面是以bridge网络的方式启动

```shell
sudo docker run \
-v /path/to/your/data/dir:/usr/src/app/data \ # 请替换 /path/to/your/data/dir 为您想存储接口持久化数据的目录绝对位置
--network bridge \ #可以使用默认的bridge或者自己创建的网桥
-p 8000:8000 \ #可以将左边的8000修改为自己喜欢的端口号
hitokoto/api:latest
```

其他启动方式你可以自己摸索一下。

### 使用 docker-compose 启动服务

Expand Down