# Local production-like run of the backend (the frontend deploys to Vercel). # Usage: # docker compose up --build # # backend on http://localhost:8000 ; data persists in the named volume. services: backend: build: context: ./backend image: document-agent-backend env_file: - ./backend/.env # OPENAI_API_KEY / GEMINI_API_KEY etc. environment: DATA_DIR: /data # Allow the local Next dev server (and the proxy) through CORS. CORS_ORIGINS: "http://localhost:3000,http://localhost:3002" ENABLE_OCR: "true" ports: - "8000:8000" volumes: - backend_data:/data restart: unless-stopped volumes: backend_data: