Commit graph

7 commits

Author SHA1 Message Date
SamoilenkoVadym
34594b64b4 fix(docker): isolate Redis within Docker network
- Add Redis container back (no external port exposure)
- Redis only accessible within Docker network
- Backend connects via redis://redis:6379/0
- Simplify Redis health check in deploy.sh

This avoids port conflicts while keeping Redis in Docker.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:39:19 +00:00
SamoilenkoVadym
a591765c28 fix(docker): use existing Redis server instead of container
- Remove redis container (port 6379 conflict)
- Use host Redis at 172.17.0.1:6379 (Docker bridge gateway)
- Remove redis depends_on from backend
- Remove redis-data volume

Backend connects to existing Redis on host machine.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:36:11 +00:00
SamoilenkoVadym
536400fa6f fix(docker): remove PostgreSQL service (using SQLite)
- Remove postgres service (port 5432 conflict)
- Using SQLite by default (simpler for single-server deployment)
- Remove postgres-data volume
- PostgreSQL can be added later if needed

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:35:13 +00:00
SamoilenkoVadym
5b06af283f fix(docker): make Excel lookup file optional in docker-compose
- Comment out Excel file volume mount by default
- Excel lookup will be disabled if file not present
- Prevents deployment error when file doesn't exist
- Users can uncomment the line if they have the Excel file

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:34:03 +00:00
SamoilenkoVadym
9fd8581dd4 fix(config): use port 5001 for Azure AD compatibility
- Change BACKEND_PORT from 8001 to 5001 (same as Flask)
- Keeps existing Azure AD redirect URI working
- No need to update Azure AD app registration
- Apache proxy can use same port configuration

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:29:45 +00:00
SamoilenkoVadym
0d706fe79b fix(config): change backend port to 8001 (port 8000 occupied on server)
- Make BACKEND_PORT configurable via .env
- Update docker-compose to use ${BACKEND_PORT:-8001}
- Update deploy.sh to read port from .env
- Update Apache config examples to use port 8001
- Update all documentation with correct port

Apache config must proxy:
  /solventum-image-metadata/api → http://localhost:8001

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:26:51 +00:00
SamoilenkoVadym
a95f7be047 feat(deploy): add production deployment for Ubuntu with Docker
- Create idempotent deploy.sh for production deployment
- Add docker-compose.fastapi.yml with Redis + Backend
- Configure health checks for all services
- Add .env.fastapi.example with all configuration
- Remove old Flask deployment script (docker-run.sh)

Deployment features:
- Pre-flight checks (Docker, Node, permissions)
- Frontend build with Vite
- Deploy to /var/www/html/solventum-image-metadata
- Graceful container restart
- Health checks (backend + Redis)
- Auto-cleanup old Docker images

Usage:
  cd /opt/solventum-image-metadata
  git pull origin main
  sudo ./deploy.sh

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 13:15:04 +00:00