Spaces:
Sleeping
Sleeping
File size: 693 Bytes
f65e025 | 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 | # 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:
|