Add docker compose to CLI (#11406)

Add docker compose to cli
This commit is contained in:
Eugene Yurtsev 2023-10-05 10:58:56 -04:00 committed by GitHub
parent e2d6c41177
commit 5a1f614175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,2 @@
PORT=8001
OPENAI_API_KEY="your_secret_key_here"

View File

@ -35,6 +35,12 @@ make start
This will launch a webserver on port 8001. This will launch a webserver on port 8001.
Or via docker compose (does not use hot reload by default):
```
docker compose up
```
## Deploy ## Deploy
To deploy the project, first build the docker image: To deploy the project, first build the docker image:

View File

@ -0,0 +1,12 @@
version: '3'
services:
server:
build:
context: .
image: ____project_name:latest
container_name: ____project_name
ports:
- "8001:8001"
env_file:
- .env