0d34867a69
- New `features/doc-service` FastAPI microservice: PDF upload, async text extraction (pdfplumber), AI classification via Anthropic/Ollama/ LM Studio, per-user categories, file download - Alembic migration isolated with `alembic_version_doc_service` table - Main backend: httpx proxy routers for /api/documents/* and /api/documents/categories/*, admin settings API at /api/settings/* - Runtime config in /config/doc_service_config.json (shared Docker volume); api_key masking on reads; atomic write with os.replace() - Frontend: DocumentsPage, DocumentAdminSettingsPage, updated AppsPage launcher hub, simplified Nav (removed Settings link), new routes - docker-compose: doc-service service, doc_data + app_config volumes, removed internal:true from backend-net for outbound AI API calls - Fix pre-commit hook: probe Docker socket path so git subprocess picks up Docker Desktop on macOS - Fix security_check.py: use sys.executable for bandit so venv python is used instead of system python Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
704 B
YAML
30 lines
704 B
YAML
# Development overrides — hot reload for backend and frontend
|
|
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
|
|
|
|
services:
|
|
|
|
backend:
|
|
user: "1001:1001"
|
|
command: sh scripts/start_dev.sh
|
|
volumes:
|
|
- ./backend:/app
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
target: builder # stop at the Node stage, skip nginx
|
|
user: "1001:1001"
|
|
command: npm run dev -- --host 0.0.0.0
|
|
ports:
|
|
- "5173:5173"
|
|
environment:
|
|
VITE_API_TARGET: http://backend:8000
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
|
|
doc-service:
|
|
command: sh scripts/start_dev.sh
|
|
volumes:
|
|
- ./features/doc-service:/app
|