Spaces:
Running
Running
File size: 1,428 Bytes
468ea61 c1d5b1b 468ea61 c1d5b1b 468ea61 c1d5b1b 468ea61 c1d5b1b 468ea61 c1d5b1b 468ea61 c1d5b1b 468ea61 c1d5b1b 468ea61 c1d5b1b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | services:
# βββ Qdrant Vector Store βββ
qdrant:
image: qdrant/qdrant:latest
ports:
- "6333:6333"
volumes:
- qdrant_data:/qdrant/storage
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# βββ Redis Cache (Session Storage & Rate Limit Tracking) βββ
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
command: redis-server --appendonly yes --maxmemory 512mb --maxmemory-policy allkeys-lru
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# βββ Main Application βββ
app:
build: .
ports:
- "7860:7860"
depends_on:
qdrant:
condition: service_healthy
redis:
condition: service_healthy
env_file:
- ../.env
environment:
# Use Docker network names for service discovery
- QDRANT_URL=http://qdrant:6333
- REDIS_URL=redis://redis:6379/0
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7860/api/ai/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
volumes:
qdrant_data:
redis_data:
|