-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
63 lines (61 loc) · 2.49 KB
/
Copy pathrender.yaml
File metadata and controls
63 lines (61 loc) · 2.49 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
58
59
60
61
62
63
services:
# ─────────────────────────────────────────────────────────────
# 1. Python RAG Microservice
# ─────────────────────────────────────────────────────────────
- type: web
name: nyaya-rag
env: python
rootDir: rag
buildCommand: pip install -r requirements.txt
startCommand: uvicorn main:app --host 0.0.0.0 --port $PORT
envVars:
- key: GROQ_API_KEY
sync: false
- key: COHERE_API_KEY
sync: false
- key: DATABASE_URL
sync: false
- key: PYTHON_VERSION
value: "3.11.11"
- key: RAG_VECTOR_SEARCH
value: "false"
- key: RAG_EMBEDDING_PROVIDER
value: "mock"
# ─────────────────────────────────────────────────────────────
# 2. Express Backend API Gateway
# ─────────────────────────────────────────────────────────────
- type: web
name: nyaya-backend
env: node
rootDir: backend
buildCommand: npm install && npx prisma generate && npm run build
startCommand: npm start
envVars:
- key: DATABASE_URL
sync: false
- key: JWT_ACCESS_SECRET
generateValue: true
- key: JWT_REFRESH_SECRET
generateValue: true
- key: PYTHON_RAG_URL
fromService:
type: web
name: nyaya-rag
property: url
- key: GROQ_API_KEY
sync: false
# ─────────────────────────────────────────────────────────────
# 3. Next.js Frontend Web Application
# ─────────────────────────────────────────────────────────────
- type: web
name: nyaya-frontend
env: node
rootDir: frontend
buildCommand: npm install && npm run build
startCommand: npm start
envVars:
- key: NEXT_PUBLIC_API_URL
fromService:
type: web
name: nyaya-backend
property: url