File size: 1,493 Bytes
167596f | 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 | services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: agentic-rag-backend
restart: unless-stopped
ports:
- "8000:8000"
environment:
- GEMINI_API_KEY=${GEMINI_API_KEY}
- GEMINI_TEXT_MODEL=${GEMINI_TEXT_MODEL:-models/gemini-flash-latest}
- GEMINI_VERIFIER_MODEL=${GEMINI_VERIFIER_MODEL:-models/gemini-pro-latest}
- GEMINI_VISION_MODEL=${GEMINI_VISION_MODEL:-models/gemini-flash-latest}
- GEMINI_EMBEDDING_MODEL=${GEMINI_EMBEDDING_MODEL:-models/text-embedding-004}
- TAVILY_API_KEY=${TAVILY_API_KEY}
- PYTHONUNBUFFERED=1
volumes:
- ./storage:/app/storage
- ./uploads:/app/uploads
- ./backend/output:/app/backend/output
networks:
- rag-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: agentic-rag-frontend
restart: unless-stopped
ports:
- "3000:80"
depends_on:
backend:
condition: service_healthy
networks:
- rag-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
rag-network:
driver: bridge
volumes:
storage:
uploads:
output:
|