Spaces:
Configuration error
Configuration error
File size: 1,168 Bytes
151ec26 | 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 | version: "3.8"
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: sanjeevani-backend
ports:
- "8000:8000"
environment:
- APP_ENV=production
- DEBUG=false
- DATABASE_URL=sqlite+aiosqlite:///sanjeevani.db
- SECRET_KEY=sanjeevani_super_secret_jwt_key_production_2026_enterprise_grade
- MODEL_PATH=models/bc5cdr-ner
- LLM_PROVIDER=mock
- CORS_ORIGINS=["http://localhost:3000","http://127.0.0.1:3000"]
volumes:
- ./uploads:/app/uploads
- ./models:/app/models
- ./sanjeevani.db:/app/sanjeevani.db
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: sanjeevani-frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
default:
name: sanjeevani-network
|