File size: 1,512 Bytes
fcf8749
b9421a8
fcf8749
b9421a8
fcf8749
 
b9421a8
 
 
fcf8749
 
 
 
 
b9421a8
 
fcf8749
 
b9421a8
fcf8749
 
b9421a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
services:
  # Node.js API Gateway (handles auth, proxy to brain, business logic)
  - type: web
    name: fairrelay-backend
    runtime: node
    plan: free
    buildCommand: npm install
    startCommand: node index.js
    healthCheckPath: /api/health
    envVars:
      - key: NODE_ENV
        value: production
      - key: PORT
        value: 3000
      - key: BRAIN_URL
        value: https://fairrelay-brain.onrender.com
      - key: JWT_SECRET
        sync: false
      - key: DATABASE_URL
        sync: false
      - key: CORS_ORIGINS
        value: "https://fairrelay.vercel.app,https://logisticsnow.in,https://app.lorri.in,http://localhost:5173"

  # FastAPI AI Brain (LangGraph multi-agent system)
  - type: web
    name: fairrelay-brain
    runtime: docker
    plan: free
    dockerfilePath: ../brain/Dockerfile
    dockerContext: ../brain
    healthCheckPath: /health
    envVars:
      - key: APP_ENV
        value: production
      - key: PORT
        value: 8000
      - key: DATABASE_URL
        value: ""
      - key: CORS_ORIGINS
        value: "https://fairrelay-backend.onrender.com,https://fairrelay.vercel.app,https://logisticsnow.in,http://localhost:3000"
      - key: LANGCHAIN_TRACING_V2
        value: "false"
      - key: LANGCHAIN_API_KEY
        sync: false
      - key: LANGCHAIN_PROJECT
        value: fairrelay-prod
      - key: GOOGLE_API_KEY
        sync: false
      - key: ENABLE_GEMINI_EXPLAIN
        value: "true"
      - key: GEMINI_MODEL
        value: "gemini-2.5-flash"