-
Notifications
You must be signed in to change notification settings - Fork 60.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1537 from qingfengfenga/main
Add docker-compose launch
- Loading branch information
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# Your openai api key. (required) | ||
OPENAI_API_KEY=sk-xxxx | ||
|
||
# Access passsword, separated by comma. (optional) | ||
CODE=your-password | ||
|
||
# You can start service behind a proxy | ||
PROXY_URL=http://localhost:7890 | ||
|
||
# Override openai api request base url. (optional) | ||
# Default: https://api.openai.com | ||
# Examples: http://your-openai-proxy.com | ||
BASE_URL= | ||
|
||
# Specify OpenAI organization ID.(optional) | ||
# Default: Empty | ||
# If you do not want users to input their own API key, set this value to 1. | ||
OPENAI_ORG_ID= | ||
|
||
# (optional) | ||
# Default: Empty | ||
# If you do not want users to input their own API key, set this value to 1. | ||
HIDE_USER_API_KEY= | ||
|
||
# (optional) | ||
# Default: Empty | ||
# If you do not want users to use GPT-4, set this value to 1. | ||
DISABLE_GPT4= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,7 @@ dev | |
public/prompts.json | ||
|
||
.vscode | ||
.idea | ||
.idea | ||
|
||
# docker-compose env files | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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 | ||
- BASE_URL=$BASE_URL | ||
- OPENAI_ORG_ID=$OPENAI_ORG_ID | ||
- HIDE_USER_API_KEY=$HIDE_USER_API_KEY | ||
- DISABLE_GPT4=DISABLE_GPT4 | ||
|
||
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 | ||
- BASE_URL=$BASE_URL | ||
- OPENAI_ORG_ID=$OPENAI_ORG_ID | ||
- HIDE_USER_API_KEY=$HIDE_USER_API_KEY | ||
- DISABLE_GPT4=DISABLE_GPT4 |