image-search-api / render.yaml
mbishu's picture
Remove DEMO_MODE environment variable from Docker configurations and update README with cloud deployment limitations for CLIP models. Enhance main application to load environment variables from a .env file and support multiple database types with a wrapper for non-SQLite databases.
c6ddac7
Raw History Blame Contribute Delete
1.12 kB
# Render deployment configuration for Image Search API (Free Tier Optimized)
services:
- type: web
name: image-search-api
env: python
plan: free
buildCommand: |
pip install --upgrade pip
pip install -r requirements-free.txt
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT --workers 1
envVars:
- key: PYTHON_VERSION
value: 3.11
- key: INDEX_TYPE
value: "HNSW"
- key: TOPK_DEFAULT
value: "5"
- key: ENABLE_ADVANCED_RERANKING
value: "false"
- key: ENABLE_DIVERSITY_PENALTY
value: "false"
- key: ENABLE_QUERY_EXPANSION
value: "false"
- key: ENABLE_AUTO_MONITOR
value: "false"
- key: MONITOR_INTERVAL
value: "300"
- key: RENDER
value: "true"
# Optional: Use smaller model for free tier (default: clip-ViT-L-14)
# Uncomment to use smaller model: clip-ViT-B-32
# - key: CLIP_MODEL_NAME
# value: "clip-ViT-B-32"
healthCheckPath: /health
disk:
name: image-search-data
mountPath: /app/data
sizeGB: 1