Modified docker-compose.yml to support .env file: - Added env_file directive to load .env automatically - Simplified environment section (only DOCKER_MODE required) - Enables AI metadata generation when OPENAI_API_KEY is set in .env - All optional configs now loaded from .env file Users can now create .env file with their OpenAI API key and other settings. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
44 lines
937 B
YAML
44 lines
937 B
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
|
|
|
|
# Load environment variables from .env file (if exists)
|
|
env_file:
|
|
- .env
|
|
|
|
environment:
|
|
# Docker mode enabled
|
|
- DOCKER_MODE=true
|
|
|
|
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
|