File size: 799 Bytes
ba2fc46
534a729
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Docker Compose File for Local Development
version: '3.8'

services:
  api:
    build: .
    container_name: omni_agent_test_api
    ports:
      - "8000:8000"
    volumes:
      - .:/app  # Hot Reloading ke liye
      - hf_cache:/root/.cache/huggingface # AI Model Cache
    
    # CRITICAL: Path ko dots se theek kiya (jaisa Python ko chahiye)
    command: >
      sh -c "python backend/src/init_db.py &&
             uvicorn backend.src.main:app --host 0.0.0.0 --port 8000" 
    
    # Ye variables sirf local testing ke liye hain
    environment:
      - DATABASE_URL=sqlite+aiosqlite:///./omni_agent.db
      - QDRANT_HOST=localhost 
      - MONGO_HOST=localhost
      - PORT=8000
      - SECRET_KEY=test_key
      - GROQ_API_KEY=[AAPKI GROQ KEY] # Ya .env se utha lo
    
volumes:
  hf_cache: