Skip to content

Commit b89a023

Browse files
committedApr 16, 2024
docs: add deployment example
1 parent af4d752 commit b89a023

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
 

Diff for: ‎README.md

+8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ Simple, lightweight, reliable, Docker deployable, easy to maintain.
2727

2828
> Experimentally under development and not recommended for use in production environments.
2929
30+
## Deployment
31+
32+
One command is all it takes to deploy the service to port 8080 using Docker.
33+
34+
```shell
35+
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.1
36+
```
37+
3038
## Usage
3139

3240
### OpenAPI Standard Documentation (Swagger 3.0)

Diff for: ‎docs/zhs/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ LessAPI-DuckDuckGo 是一个搜索引擎API服务。
3030

3131
> 实验性地开发中,不建议在生产环境中使用。
3232
33+
## 部署
34+
35+
使用Docker只需要一个命令即可将服务部署到8080端口。
36+
37+
```shell
38+
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.1
39+
```
40+
3341
## 使用
3442

3543
### OpenAPI标准文档 (Swagger 3.0)

0 commit comments

Comments
 (0)