Skip to content

Commit

Permalink
chore: update docker-compose, update README docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh990918 committed Apr 10, 2023
1 parent 3381a2e commit ae5b625
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ A demo repo based on [OpenAI GPT-3.5 Turbo API.](https://platform.openai.com/doc

**🍿 Live preview**: https://chatgpt.ddiu.me

**🏖️ V2 Version(Beta)**: https://v2.chatgpt.ddiu.me

> ⚠️ Notice: Our API Key limit has been exhausted. So the demo site is not available now.
![chat-logo](https://cdn.staticaly.com/gh/yzh990918/static@master/chat-logo.webp)



## Running Locally

### Pre environment
Expand Down Expand Up @@ -81,8 +81,6 @@ A demo repo based on [OpenAI GPT-3.5 Turbo API.](https://platform.openai.com/doc

### Deploy with Docker

Before deploying the app, please make sure `.env` is configured normally.

Environment variables refer to the documentation below. [Docker Hub address](https://hub.docker.com/r/ddiu8081/chatgpt-demo).

**Direct run**
Expand All @@ -105,6 +103,12 @@ services:
- '3000:3000'
environment:
- OPENAI_API_KEY=YOUR_OPEN_API_KEY
# - HTTPS_PROXY=YOUR_HTTPS_PROXY
# - OPENAI_API_BASE_URL=YOUR_OPENAI_API_BASE_URL
# - HEAD_SCRIPTS=YOUR_HEAD_SCRIPTS
# - SECRET_KEY=YOUR_SECRET_KEY
# - SITE_PASSWORD=YOUR_SITE_PASSWORD
# - OPENAI_API_MODEL=YOUR_OPENAI_API_MODEL
```

```bash
Expand Down Expand Up @@ -156,7 +160,7 @@ This project exists thanks to all those who contributed.

Thank you to all our supporters!🙏

[![img](https://contrib.rocks/image?repo=ddiu8081/chatgpt-demo)](https://github.com/ddiu8081/chatgpt-demo/graphs/contributors)
[![img](https://contributors.nn.ci/api?repo=ddiu8081/chatgpt-demo)](https://github.com/ddiu8081/chatgpt-demo/graphs/contributors)

## License

Expand Down
8 changes: 8 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

**🍿 在线预览**: https://chatgpt.ddiu.me

**🏖️ V2 版本(Beta)**: https://v2.chatgpt.ddiu.me

> ⚠️ 注意: 我们的API密钥限制已用尽。所以演示站点现在不可用。
![chat-logo](https://cdn.staticaly.com/gh/yzh990918/static@master/chat-logo.webp)
Expand Down Expand Up @@ -98,6 +100,12 @@ services:
- '3000:3000'
environment:
- OPENAI_API_KEY=YOUR_OPEN_API_KEY
# - HTTPS_PROXY=YOUR_HTTPS_PROXY
# - OPENAI_API_BASE_URL=YOUR_OPENAI_API_BASE_URL
# - HEAD_SCRIPTS=YOUR_HEAD_SCRIPTS
# - SECRET_KEY=YOUR_SECRET_KEY
# - SITE_PASSWORD=YOUR_SITE_PASSWORD
# - OPENAI_API_MODEL=YOUR_OPENAI_API_MODEL
```

```bash
Expand Down
11 changes: 9 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@ services:
restart: always
ports:
- "3000:3000"
volumes:
- .env:/usr/src/.env
environment:
- OPENAI_API_KEY=YOUR_OPENAI_API_KEY
# - HTTPS_PROXY=YOUR_HTTPS_PROXY
# - OPENAI_API_BASE_URL=YOUR_OPENAI_API_BASE_URL
# - HEAD_SCRIPTS=YOUR_HEAD_SCRIPTS
# - SECRET_KEY=YOUR_SECRET_KEY
# - SITE_PASSWORD=YOUR_SITE_PASSWORD
# - OPENAI_API_MODEL=YOUR_OPENAI_API_MODEL

0 comments on commit ae5b625

Please sign in to comment.