Spaces:
Sleeping
Sleeping
Create docker-compose.yml
Browse files- docker-compose.yml +32 -0
docker-compose.yml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: "3.9"
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
indexer:
|
| 5 |
+
build: .
|
| 6 |
+
command: ["python", "ingest.py"]
|
| 7 |
+
volumes:
|
| 8 |
+
- .:/app
|
| 9 |
+
working_dir: /app
|
| 10 |
+
# This runs once to (re)build subset + chunks + embeddings
|
| 11 |
+
|
| 12 |
+
api:
|
| 13 |
+
build: .
|
| 14 |
+
command: ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 15 |
+
depends_on:
|
| 16 |
+
- indexer
|
| 17 |
+
ports:
|
| 18 |
+
- "8000:8000"
|
| 19 |
+
volumes:
|
| 20 |
+
- .:/app
|
| 21 |
+
working_dir: /app
|
| 22 |
+
|
| 23 |
+
ui:
|
| 24 |
+
build: .
|
| 25 |
+
command: ["python", "app.py"]
|
| 26 |
+
depends_on:
|
| 27 |
+
- indexer
|
| 28 |
+
ports:
|
| 29 |
+
- "7860:7860"
|
| 30 |
+
volumes:
|
| 31 |
+
- .:/app
|
| 32 |
+
working_dir: /app
|