Add docker compose to CLI (#11406)

Add docker compose to cli
pull/11442/head
Eugene Yurtsev 1 year ago committed by GitHub
parent e2d6c41177
commit 5a1f614175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

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