# Full stack locally: docker compose up --build # Needs backend/.env with ANTHROPIC_API_KEY and TAVILY_API_KEY (or DEMO_MODE=true). services: backend: build: ./backend env_file: ./backend/.env environment: CORS_ORIGINS: '["http://localhost:3000"]' ports: - "8000:8000" volumes: - research-data:/data healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')"] interval: 10s timeout: 3s retries: 5 frontend: build: context: ./frontend args: NEXT_PUBLIC_API_URL: http://localhost:8000 ports: - "3000:3000" depends_on: backend: condition: service_healthy volumes: research-data: