services: backend: build: context: . dockerfile: Dockerfile ports: - "7860:7860" environment: - GROQ_API_KEY=${GROQ_API_KEY} - OPENROUTER_API_KEY=${OPENROUTER_API_KEY} healthcheck: test: ["CMD", "curl", "-f", "http://localhost:7860/health"] interval: 30s timeout: 10s retries: 3 start_period: 15s frontend: image: node:20-alpine working_dir: /app volumes: - ./frontend:/app - /app/node_modules ports: - "5173:5173" environment: - VITE_API_URL=http://localhost:7860 command: sh -c "npm install && npm run dev -- --host 0.0.0.0" depends_on: backend: condition: service_healthy