-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
51 lines (49 loc) · 1.34 KB
/
render.yaml
File metadata and controls
51 lines (49 loc) · 1.34 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
services:
- type: web
name: traffic-management-api
env: python
region: oregon
buildCommand: "pip install -r backend/requirements.txt"
startCommand: "cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT"
envVars:
- key: TRAFFIC_DEBUG_MODE
value: "false"
- key: TRAFFIC_LOG_LEVEL
value: "INFO"
- key: TRAFFIC_ENABLE_GPU_ACCELERATION
value: "false"
- key: TRAFFIC_MODEL_CACHE_DIRECTORY
value: "./models"
- key: TRAFFIC_API_HOST
value: "0.0.0.0"
- key: TRAFFIC_ALLOWED_ORIGINS
value: "*"
- key: ENVIRONMENT
value: "production"
healthCheckPath: "/health"
numInstances: 1
scaling:
minInstances: 1
maxInstances: 3
targetMemoryPercent: 70
targetCPUPercent: 70
disk:
name: traffic-models
mountPath: /opt/render/project/src/models
sizeGB: 5
- type: static
name: traffic-management-frontend
buildCommand: "cd frontend && npm install && npm run build"
staticPublishPath: ./frontend/dist
envVars:
- key: VITE_API_URL
fromService:
type: web
name: traffic-management-api
property: host
databases:
- name: traffic-redis
databaseName: traffic_cache
user: traffic_user
region: oregon
ipAllowList: []