Skip to content

Commit

Permalink
doc: 补充docker-compose的内容 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf authored Mar 7, 2023
1 parent a95719d commit 4b934c8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ services:
image: dockerproxy.com/eryajf/chatgpt-dingtalk:latest
container_name: chatgpt
environment:
- APIKEY=sk-XXXXXX
- SESSION_TIMEOUT=600
- HTTP_PROXY=
- DEFAULT_MODE="单聊"
- APIKEY=xxxxxx # 你的 api_key
- MODEL="gpt-3.5-turbo-0301" # 指定模型
- SESSION_TIMEOUT=600 # 超时时间
- HTTP_PROXY=http://host.docker.internal:15777 # 配置代理,注意:host.docker.internal会解析到容器所在的宿主机IP,如果你的服务部署在宿主机,只需要更改端口即可
- DEFAULT_MODE="单聊" # 聊天模式
ports:
- "8090:8090"
restart: always
restart: always
extra_hosts:
- host.docker.internal:host-gateway

0 comments on commit 4b934c8

Please sign in to comment.