File size: 898 Bytes
77085e5 | 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 | version: '3.9'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- LLM_BASE_URL=${LLM_BASE_URL:-https://api.groq.com/openai/v1}
- LLM_API_KEY=${LLM_API_KEY}
- LLM_MODEL=${LLM_MODEL:-llama-3.3-70b-versatile}
- LLM_MAX_TOKENS=${LLM_MAX_TOKENS:-8192}
- LLM_TEMPERATURE=${LLM_TEMPERATURE:-0.3}
- CORS_ORIGINS=http://localhost:5173,http://localhost:3000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 5s
retries: 3
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:80"
environment:
- VITE_API_URL=http://localhost:8000
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
|