Skip to content

Commit

Permalink
doc: update docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Oct 9, 2023
1 parent 9a23514 commit e1c9f54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@
### Docker (推荐)

```bash
docker run -d -p 3000:3000 --name free-one-api -v ./data:/app/data rockchin/free-one-api
docker run -d -p 3000:3000 --restart always --name free-one-api -v ~/free-one-api/data:/app/data rockchin/free-one-api
```

此语句将启动 free-one-api 并指定 `~/free-one-api/data` 为容器的文件存储映射目录。
你可以在 `http://localhost:3000/` 打开管理页面。

### 手动
Expand Down
5 changes: 3 additions & 2 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ File a issue or pull request if you want to add more.
### Docker (Recommended)

```bash
docker run -d -p 3000:3000 --name free-one-api -v ./data:/app/data rockchin/free-one-api
docker run -d -p 3000:3000 --restart always --name free-one-api -v ~/free-one-api/data:/app/data rockchin/free-one-api
```

then you can open the admin page at `http://localhost:3000/`.
This command will start free-one-api and specify `~/free-one-api/data` as the container's file storage mapping directory.
Then you can open the admin page at `http://localhost:3000/`.

### Manual

Expand Down

0 comments on commit e1c9f54

Please sign in to comment.