diff --git a/.env.template b/.env.template new file mode 100644 index 0000000..2cc1302 --- /dev/null +++ b/.env.template @@ -0,0 +1,4 @@ +OPENAI_API_KEY=sk-xxxx +CODE=your-password + +PROXY_URL=http://localhost:7890 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 37f6b90..3c55f8c 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,7 @@ dev public/prompts.json .vscode -.idea \ No newline at end of file +.idea + +# docker-compose env files +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c250d0d --- /dev/null +++ b/docker-compose.yml @@ -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