-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vishesh Arora
committed
Feb 4, 2024
1 parent
4eaa6f1
commit c8aa3f1
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM python:3.11 | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
RUN pip install -r requirements.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,9 @@ | |
## Delete DB | ||
`python3 delete_db.py` | ||
## Deployment | ||
``` | ||
docker compose up --build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: '3' | ||
|
||
services: | ||
chroma: | ||
image: chromadb/chroma | ||
ports: | ||
- 8000:8000 | ||
volumes: | ||
- /tmp/rando_data:/chroma/chroma | ||
|
||
web: | ||
build: . | ||
command: sh -c "sleep 10 && uvicorn main:app --reload --port=8080 --host=0.0.0.0" | ||
env_file: | ||
- .env | ||
ports: | ||
- 8080:8080 | ||
depends_on: | ||
- chroma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters