document_agent / docker-compose.yml
Jai-rathore29's picture
Deploy: DocAgent backend (deterministic date-anomaly fix)
f65e025
Raw
History Blame Contribute Delete
693 Bytes
# 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: