Commit graph

3 commits

Author SHA1 Message Date
SamoilenkoVadym
5b5056764c Configure Docker to load environment variables from .env file
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>
2026-01-26 14:02:42 +00:00
SamoilenkoVadym
32eec7381f Remove deprecated version field from docker-compose.yml
- 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>
2026-01-26 13:17:56 +00:00
SamoilenkoVadym
acc071927e Add Docker support with complete deployment setup
Features:
- Docker mode detection via DOCKER_MODE env var
- Persistent volumes for uploads, database, and output
- Health checks and auto-restart
- Complete docker-compose.yml configuration
- Helper script (docker-run.sh) for easy management
- Comprehensive DOCKER.md documentation

Changes:
- web_app.py: Auto-detect Docker mode, use persistent dirs
- src/database.py: Auto-detect database path based on environment
- Dockerfile: Multi-stage build with all dependencies (ExifTool, Tesseract, Poppler, FFmpeg)
- docker-compose.yml: Production-ready configuration
- docker-run.sh: Management script (build, start, stop, logs, etc.)
- DOCKER.md: Complete deployment and troubleshooting guide
- README.md: Added Docker quick start section
- .gitignore: Added Docker-related entries

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-26 13:07:15 +00:00