Skip to content

Commit

Permalink
docs: add instructions for docker deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
AprilNEA committed Mar 27, 2023
1 parent 2645540 commit e880df6
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,30 @@ Please ask ChatGPT with prompt:
how to deploy nextjs project with pm2 and yarn on my ubuntu server, the build command is `yarn build`, the start command is `yarn start`, the project must start with env var named `OPENAI_API_KEY`, the port is 3000, use ngnix
```

### Docker Deployment
请直接询问 ChatGPT,使用下列 Prompt:
### 容器部署 Docker Deployment

1. 首先拉取镜像
```shell
docker pull aprilnea/chatgpt-next-web
```
如何使用 docker 部署 nextjs 项目到 ubuntu 服务器上,项目编译命令为 yarn build,启动命令为 yarn start,启动时需要设置环境变量为 OPENAI_API_KEY,端口为 3000,使用 ngnix 做反向代理
2. 运行
```shell
docker run -d -p 3000:3000 -e OPEN_API_KEY="" -e CODE="" aprilnea/chatgpt-next-web
```
请在适当位置替换你的 `OPEN_API-KEY``CODE`

Please ask ChatGPT with prompt:

1. First, pull the image
```shell
docker pull aprilnea/chatgpt-next-web
```
how to deploy nextjs project with docker on my ubuntu server, the build command is `yarn build`, the start command is `yarn start`, the project must start with env var named `OPENAI_API_KEY`, the port is 3000, use ngnix

2. Run the container
```shell
docker run -d -p 3000:3000 -e OPEN_API_KEY="" -e CODE="" aprilnea/chatgpt-next-web
```
Please replace `OPEN_API_KEY` and `CODE` with your own credentials at the appropriate locations.


## 截图 Screenshots

Expand Down

0 comments on commit e880df6

Please sign in to comment.