Commit
·
8a50149
1
Parent(s):
e680c6c
chore: add docker-compose + override for local development
Browse files- docker-compose.override.yml +12 -0
- docker-compose.yml +22 -0
docker-compose.override.yml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '3.8'
|
| 2 |
+
|
| 3 |
+
# Development overrides - mount code read/write and enable live reload
|
| 4 |
+
services:
|
| 5 |
+
api:
|
| 6 |
+
volumes:
|
| 7 |
+
- ./:/app:rw
|
| 8 |
+
- /app/.vector_index
|
| 9 |
+
environment:
|
| 10 |
+
# Ensure tokenizer parallelism is disabled inside container for stability
|
| 11 |
+
- TOKENIZERS_PARALLELISM=false
|
| 12 |
+
command: ["uvicorn", "app.api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
docker-compose.yml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '3.8'
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
api:
|
| 5 |
+
build:
|
| 6 |
+
context: .
|
| 7 |
+
dockerfile: Dockerfile
|
| 8 |
+
image: feedback-rag:latest
|
| 9 |
+
restart: unless-stopped
|
| 10 |
+
env_file:
|
| 11 |
+
- .env
|
| 12 |
+
ports:
|
| 13 |
+
- "8000:8000"
|
| 14 |
+
volumes:
|
| 15 |
+
- ./:/app:ro
|
| 16 |
+
# By default, run the production command from the Dockerfile.
|
| 17 |
+
command: ["uvicorn", "app.api:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 18 |
+
healthcheck:
|
| 19 |
+
test: ["CMD-SHELL", "curl -f http://localhost:8000/health || exit 1"]
|
| 20 |
+
interval: 30s
|
| 21 |
+
timeout: 10s
|
| 22 |
+
retries: 3
|