AIDA / render.yaml
destinyebuka's picture
Deploy Lojiz Platform with Aida AI backend
79ef7e1
services:
- type: web
name: lojiz-auth-api
runtime: python
pythonVersion: 3.11
# βœ… Build & Start Commands
buildCommand: pip install -r requirements.txt
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
# βœ… CRITICAL: Health check (Render uses this to verify app is running)
healthCheckPath: /health
# βœ… Prestart check to catch errors early
predeployCommand: python -c "from app.main import app; print('βœ… App imports successfully')"
# βœ… Environment Variables
envVars:
# Python & Environment
- key: PYTHON_VERSION
value: "3.11"
- key: ENVIRONMENT
value: production
- key: DEBUG
value: "False"
# Authentication
- key: JWT_SECRET
sync: false # Set in Render dashboard
# Database
- key: MONGODB_URL
sync: false # Set in Render dashboard
# Email Service
- key: RESEND_API_KEY
sync: false # Set in Render dashboard
- key: RESEND_FROM_EMAIL
value: noreply@lojiz.com
# OTP Settings
- key: OTP_EXPIRY_MINUTES
value: "15"
- key: OTP_MAX_ATTEMPTS
value: "5"
# CORS
- key: CORS_ORIGINS
value: "http://localhost:3000,https://lojiz.com,https://www.lojiz.com"
# βœ… NEW: AI & ML Settings
- key: DEEPSEEK_API_KEY
sync: false # Set in Render dashboard
- key: DEEPSEEK_BASE_URL
value: "https://api.deepseek.com/v1"
- key: OPENAI_API_KEY
sync: false # Set in Render dashboard
# βœ… NEW: Cache & Vector Store
- key: REDIS_URL
sync: false # Set in Render dashboard
- key: QDRANT_URL
sync: false # Set in Render dashboard
- key: QDRANT_API_KEY
sync: false # Set in Render dashboard (if needed)
# βœ… NEW: Cloudflare Images (for property uploads)
- key: CF_ACCOUNT_ID
sync: false # Set in Render dashboard
- key: CF_API_TOKEN
sync: false # Set in Render dashboard
# βœ… NEW: Monitoring (optional)
- key: SENTRY_DSN
sync: false # Set in Render dashboard (optional)
# βœ… NEW: Port (explicit for clarity)
- key: PORT
value: "8000"