Spaces:
Sleeping
Sleeping
File size: 963 Bytes
99b596a | 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 | services:
backend:
build:
context: ./backend # Docker lit les fichiers DEPUIS ./backend
dockerfile: Dockerfile
container_name: smartstudy-backend
ports:
- "8000:8000"
environment:
HF_TOKEN: ${HF_TOKEN}
HF_MODEL: ${HF_MODEL:-mistralai/Mistral-7B-Instruct-v0.3}
volumes:
- chroma_data:/app/chroma_db
- documents_data:/app/documents
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
frontend:
build:
context: ./frontend # Docker lit les fichiers DEPUIS ./frontend
dockerfile: Dockerfile
args:
VITE_API_URL: http://localhost:8000/api
container_name: smartstudy-frontend
ports:
- "5173:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
volumes:
chroma_data:
documents_data: |