Add docker-compose launch

This commit is contained in:
qingfengfenga 2023-05-16 14:34:35 +08:00
parent 5ba0aef799
commit 775ba2596a
3 changed files with 30 additions and 1 deletions

4
.env.template Normal file
View File

@ -0,0 +1,4 @@
OPENAI_API_KEY=sk-xxxx
CODE=your-password
PROXY_URL=http://localhost:7890

3
.gitignore vendored
View File

@ -40,3 +40,6 @@ public/prompts.json
.vscode
.idea
# docker-compose env files
.env

22
docker-compose.yml Normal file
View File

@ -0,0 +1,22 @@
version: '3.9'
services:
chatgpt-next-web:
profiles: ["no-proxy"]
container_name: chatgpt-next-web
image: yidadaa/chatgpt-next-web
ports:
- 3000:3000
environment:
- OPENAI_API_KEY=$OPENAI_API_KEY
- CODE=$CODE
chatgpt-next-web-proxy:
profiles: ["proxy"]
container_name: chatgpt-next-web-proxy
image: yidadaa/chatgpt-next-web
ports:
- 3000:3000
environment:
- OPENAI_API_KEY=$OPENAI_API_KEY
- CODE=$CODE
- PROXY_URL=$PROXY_URL