feat: Add Node.js backend render.yaml for production deployment
#16
by MouleeswaranM - opened
- ops/backend-dm/render.yaml +39 -15
ops/backend-dm/render.yaml
CHANGED
|
@@ -1,28 +1,52 @@
|
|
| 1 |
services:
|
|
|
|
| 2 |
- type: web
|
| 3 |
-
name: fairrelay-
|
| 4 |
runtime: node
|
| 5 |
plan: free
|
| 6 |
-
buildCommand: npm install
|
| 7 |
-
startCommand:
|
|
|
|
| 8 |
envVars:
|
| 9 |
- key: NODE_ENV
|
| 10 |
value: production
|
| 11 |
- key: PORT
|
| 12 |
value: 3000
|
| 13 |
-
- key:
|
| 14 |
-
|
| 15 |
-
- key: DIRECT_URL
|
| 16 |
-
sync: false
|
| 17 |
- key: JWT_SECRET
|
| 18 |
sync: false
|
| 19 |
-
- key:
|
| 20 |
-
sync: false
|
| 21 |
-
- key: TWILIO_AUTH_TOKEN
|
| 22 |
-
sync: false
|
| 23 |
-
- key: TWILIO_PHONE_NUMBER
|
| 24 |
sync: false
|
| 25 |
- key: CORS_ORIGINS
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
services:
|
| 2 |
+
# Node.js API Gateway (handles auth, proxy to brain, business logic)
|
| 3 |
- type: web
|
| 4 |
+
name: fairrelay-backend
|
| 5 |
runtime: node
|
| 6 |
plan: free
|
| 7 |
+
buildCommand: npm install
|
| 8 |
+
startCommand: node index.js
|
| 9 |
+
healthCheckPath: /api/health
|
| 10 |
envVars:
|
| 11 |
- key: NODE_ENV
|
| 12 |
value: production
|
| 13 |
- key: PORT
|
| 14 |
value: 3000
|
| 15 |
+
- key: BRAIN_URL
|
| 16 |
+
value: https://fairrelay-brain.onrender.com
|
|
|
|
|
|
|
| 17 |
- key: JWT_SECRET
|
| 18 |
sync: false
|
| 19 |
+
- key: DATABASE_URL
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
sync: false
|
| 21 |
- key: CORS_ORIGINS
|
| 22 |
+
value: "https://fairrelay.vercel.app,https://logisticsnow.in,https://app.lorri.in,http://localhost:5173"
|
| 23 |
+
|
| 24 |
+
# FastAPI AI Brain (LangGraph multi-agent system)
|
| 25 |
+
- type: web
|
| 26 |
+
name: fairrelay-brain
|
| 27 |
+
runtime: docker
|
| 28 |
+
plan: free
|
| 29 |
+
dockerfilePath: ../brain/Dockerfile
|
| 30 |
+
dockerContext: ../brain
|
| 31 |
+
healthCheckPath: /health
|
| 32 |
+
envVars:
|
| 33 |
+
- key: APP_ENV
|
| 34 |
+
value: production
|
| 35 |
+
- key: PORT
|
| 36 |
+
value: 8000
|
| 37 |
+
- key: DATABASE_URL
|
| 38 |
+
value: ""
|
| 39 |
+
- key: CORS_ORIGINS
|
| 40 |
+
value: "https://fairrelay-backend.onrender.com,https://fairrelay.vercel.app,https://logisticsnow.in,http://localhost:3000"
|
| 41 |
+
- key: LANGCHAIN_TRACING_V2
|
| 42 |
+
value: "false"
|
| 43 |
+
- key: LANGCHAIN_API_KEY
|
| 44 |
+
sync: false
|
| 45 |
+
- key: LANGCHAIN_PROJECT
|
| 46 |
+
value: fairrelay-prod
|
| 47 |
+
- key: GOOGLE_API_KEY
|
| 48 |
+
sync: false
|
| 49 |
+
- key: ENABLE_GEMINI_EXPLAIN
|
| 50 |
+
value: "true"
|
| 51 |
+
- key: GEMINI_MODEL
|
| 52 |
+
value: "gemini-2.5-flash"
|