-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathrender.yaml
More file actions
70 lines (66 loc) · 1.87 KB
/
Copy pathrender.yaml
File metadata and controls
70 lines (66 loc) · 1.87 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
64
65
66
67
68
69
70
services:
# 1. Python AI Microservice (Private Service)
- type: pserv
name: urbackend-python-service
env: python
rootDir: apps/python-service
buildCommand: pip install -r requirements.txt
startCommand: uvicorn main:app --host 0.0.0.0 --port $PORT
plan: starter # Uses your $50 credits safely ($7/mo)
envVars:
- key: INTERNAL_SECRET
sync: false # Set this manually in dashboard
- key: GROQ_API_KEY
sync: false # Set this manually in dashboard
- key: REDIS_URL
sync: false # If using Redis cloud
# 2. Dashboard API
- type: web
name: urbackend-dashboard-api
env: node
rootDir: apps/dashboard-api
buildCommand: npm install
startCommand: npm start
plan: starter
envVars:
- key: PYTHON_SERVICE_URL
# This automatically links to the internal private python service
value: http://urbackend-python-service:8000
- key: INTERNAL_SECRET
sync: false # Must match the one in Python Service
- key: MONGO_URL
sync: false
# 3. Public API
- type: web
name: urbackend-public-api
env: node
rootDir: apps/public-api
buildCommand: npm install
startCommand: npm start
plan: starter
envVars:
- key: MONGO_URL
sync: false
# 4. Web Dashboard (React)
- type: web
name: urbackend-web-dashboard
env: static
rootDir: apps/web-dashboard
buildCommand: npm install && npm run build
staticPublishPath: ./dist
envVars:
- key: VITE_API_URL
value: https://urbackend-dashboard-api.onrender.com
# 5. Consumer Worker (web service with health port)
- type: web
name: urbackend-consumer
env: node
rootDir: apps/consumer
buildCommand: npm install
startCommand: npm start
plan: starter
envVars:
- key: MONGO_URL
sync: false
- key: REDIS_URL
sync: false