Complete Flask → FastAPI migration with: - FastAPI app with session auth, Azure AD SSO, rate limiting - SQLite-backed session store (survives restarts) - Bulk AI metadata generation with SSE progress - Admin panel (user management, audit log, AI usage) - Subpath deployment support (ROOT_PATH config) - Docker + deploy.sh for production deployment - Test suite (auth, upload, templates, imports, admin, sessions) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
44 lines
902 B
YAML
44 lines
902 B
YAML
services:
|
|
oliver-metadata:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: oliver-metadata-tool
|
|
ports:
|
|
- "127.0.0.1:5001:5001"
|
|
volumes:
|
|
# Persistent storage for uploads
|
|
- uploads:/app/uploads
|
|
# Persistent storage for database
|
|
- database:/app/data
|
|
# Persistent storage for output/backups/reports
|
|
- output:/app/output
|
|
|
|
# Load environment variables from .env file (if exists)
|
|
env_file:
|
|
- .env
|
|
|
|
environment:
|
|
# Docker mode enabled
|
|
- DOCKER_MODE=true
|
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-sf", "http://localhost:5001/login"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
uploads:
|
|
driver: local
|
|
database:
|
|
driver: local
|
|
output:
|
|
driver: local
|
|
|
|
networks:
|
|
default:
|
|
name: oliver-metadata-network
|