forked from XiaoMo/ChatGPT-Next-Web
Add docker-compose launch
This commit is contained in:
parent
5ba0aef799
commit
775ba2596a
4
.env.template
Normal file
4
.env.template
Normal file
@ -0,0 +1,4 @@
|
||||
OPENAI_API_KEY=sk-xxxx
|
||||
CODE=your-password
|
||||
|
||||
PROXY_URL=http://localhost:7890
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -39,4 +39,7 @@ dev
|
||||
public/prompts.json
|
||||
|
||||
.vscode
|
||||
.idea
|
||||
.idea
|
||||
|
||||
# docker-compose env files
|
||||
.env
|
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user