- Removed 'version: 3.8' as it's obsolete in Docker Compose 5.0+ - Tested successfully with docker-compose 5.0.2 - All functionality working correctly Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
services:
|
|
oliver-metadata:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: oliver-metadata-tool
|
|
ports:
|
|
- "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
|
|
environment:
|
|
# Docker mode enabled
|
|
- DOCKER_MODE=true
|
|
|
|
# OpenAI API Key (required for AI metadata generation)
|
|
# Uncomment and set your API key or use .env file
|
|
# - OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
|
|
# Optional: AI Configuration
|
|
# - AI_MODEL=gpt-4o-mini
|
|
# - MAX_TOKENS=500
|
|
# - TEMPERATURE=0.5
|
|
# - API_TIMEOUT=30
|
|
# - API_MAX_RETRIES=3
|
|
|
|
# Optional: Microsoft SSO (Azure AD)
|
|
# - AZURE_CLIENT_ID=${AZURE_CLIENT_ID}
|
|
# - AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET}
|
|
# - AZURE_TENANT_ID=${AZURE_TENANT_ID}
|
|
# - REDIRECT_URI=http://localhost:5001/auth/callback
|
|
|
|
# Optional: Flask secret key (auto-generated if not set)
|
|
# - SECRET_KEY=${SECRET_KEY}
|
|
|
|
# Optional: OCR languages
|
|
# - OCR_LANGUAGES=eng+chi_sim+chi_tra+jpn+kor
|
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:5001/login', timeout=5)"]
|
|
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
|