Add docker-compose with Redis and Qdrant services
Browse files- docker-compose.yml +63 -0
docker-compose.yml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: "3.9"
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
cascade-api:
|
| 5 |
+
build: .
|
| 6 |
+
ports:
|
| 7 |
+
- "8000:8000"
|
| 8 |
+
environment:
|
| 9 |
+
- REDIS_HOST=redis
|
| 10 |
+
- REDIS_PORT=6379
|
| 11 |
+
- QDRANT_URL=http://qdrant:6333
|
| 12 |
+
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
| 13 |
+
depends_on:
|
| 14 |
+
- redis
|
| 15 |
+
- qdrant
|
| 16 |
+
restart: unless-stopped
|
| 17 |
+
healthcheck:
|
| 18 |
+
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
| 19 |
+
interval: 30s
|
| 20 |
+
timeout: 10s
|
| 21 |
+
retries: 3
|
| 22 |
+
|
| 23 |
+
cascade-ui:
|
| 24 |
+
build: .
|
| 25 |
+
command: streamlit run src/cascade/ui/app.py --server.port=8501 --server.address=0.0.0.0
|
| 26 |
+
ports:
|
| 27 |
+
- "8501:8501"
|
| 28 |
+
environment:
|
| 29 |
+
- API_URL=http://cascade-api:8000
|
| 30 |
+
depends_on:
|
| 31 |
+
- cascade-api
|
| 32 |
+
restart: unless-stopped
|
| 33 |
+
|
| 34 |
+
redis:
|
| 35 |
+
image: redis:7-alpine
|
| 36 |
+
ports:
|
| 37 |
+
- "6379:6379"
|
| 38 |
+
volumes:
|
| 39 |
+
- redis_data:/data
|
| 40 |
+
restart: unless-stopped
|
| 41 |
+
healthcheck:
|
| 42 |
+
test: ["CMD", "redis-cli", "ping"]
|
| 43 |
+
interval: 10s
|
| 44 |
+
timeout: 5s
|
| 45 |
+
retries: 5
|
| 46 |
+
|
| 47 |
+
qdrant:
|
| 48 |
+
image: qdrant/qdrant:latest
|
| 49 |
+
ports:
|
| 50 |
+
- "6333:6333"
|
| 51 |
+
- "6334:6334"
|
| 52 |
+
volumes:
|
| 53 |
+
- qdrant_data:/qdrant/storage
|
| 54 |
+
restart: unless-stopped
|
| 55 |
+
healthcheck:
|
| 56 |
+
test: ["CMD", "curl", "-f", "http://localhost:6333/"]
|
| 57 |
+
interval: 10s
|
| 58 |
+
timeout: 5s
|
| 59 |
+
retries: 5
|
| 60 |
+
|
| 61 |
+
volumes:
|
| 62 |
+
redis_data:
|
| 63 |
+
qdrant_data:
|