-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
57 lines (55 loc) · 1.68 KB
/
render.yaml
File metadata and controls
57 lines (55 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Render Blueprint for FileShare App
# Database: Using Supabase (configure DATABASE_URL manually)
services:
# Backend API
- type: web
name: fileshare-backend
env: node
plan: free
region: oregon
buildCommand: cd backend && npm install && npm run build
startCommand: cd backend && NODE_OPTIONS='--dns-result-order=ipv4first' npm start
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 5000
- key: DATABASE_URL
sync: false # Add your Supabase connection string in Render dashboard
- key: SUPABASE_URL
sync: false # Add your Supabase project URL
- key: SUPABASE_KEY
sync: false # Add your Supabase service_role key
- key: USE_SUPABASE_STORAGE
value: true
- key: JWT_SECRET
generateValue: true
- key: JWT_EXPIRES_IN
value: 7d
- key: UPLOAD_DIR
value: /tmp/uploads
- key: MAX_FILE_SIZE
value: 104857600
- key: CORS_ORIGIN
sync: false
- key: ML_SERVICE_URL
sync: false
- key: ML_SERVICE_ENABLED
value: true
# ML Service
- type: web
name: fileshare-ml-service
env: python
plan: free
region: oregon
runtime: python-3.11
buildCommand: pip install --upgrade pip setuptools wheel && pip install -r ml_service/requirements.txt
startCommand: python -m uvicorn ml_service.main:app --host 0.0.0.0 --port $PORT --workers 1
envVars:
- key: GEMINI_API_KEY
sync: false
- key: MODEL_CACHE_DIR
value: /opt/render/project/src/models
- key: PYTHONPATH
value: /opt/render/project/src
# No database service - using Supabase instead