| 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 | |