Skip to content

Commit

Permalink
feat: 添加 docker compose 部署方式 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxufeiyan authored Mar 7, 2023
1 parent 7d6205f commit a95719d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ $ docker run -itd --name chatgpt -p 8090:8090 -v `pwd`/config.json:/app/config.

其中配置文件参考下边的配置文件说明。

`第三种:使用 docker compose 运行`

```sh
$ wget https://raw.githubusercontent.com/eryajf/chatgpt-dingtalk/main/docker-compose.yml

$ nano docker-compose.yml # 编辑 APIKEY 等信息

$ docker compose up -d
```

注意,不论通过上边哪种docker方式部署,都需要配置Nginx代理,当然你直接通过服务器外网IP也可以。

部署完成之后,通过Nginx代理本服务:
Expand Down
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3.9'

services:
chatgpt:
image: dockerproxy.com/eryajf/chatgpt-dingtalk:latest
container_name: chatgpt
environment:
- APIKEY=sk-XXXXXX
- SESSION_TIMEOUT=600
- HTTP_PROXY=
- DEFAULT_MODE="单聊"
ports:
- "8090:8090"
restart: always

0 comments on commit a95719d

Please sign in to comment.