-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
41 lines (35 loc) · 1012 Bytes
/
render.yaml
File metadata and controls
41 lines (35 loc) · 1012 Bytes
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
services:
- type: web
name: policy-recommender-ai
runtime: python
pythonVersion: 3.11
# Build & Deploy
buildCommand: pip install -r requirements.txt
startCommand: uvicorn app:app --host 0.0.0.0 --port $PORT
# Environment Variables
envVars:
- key: JWT_SECRET
scope: run
value: ${JWT_SECRET}
- key: DATABASE_URL
value: sqlite:///./audit_trail.db
- key: PYTHONUNBUFFERED
value: "1"
- key: ENVIRONMENT
value: production
# Health Check
healthCheckPath: /health
# Scaling & Performance
numInstances: 1
region: oregon
# Metrics
metrics:
- name: cpu
threshold: 80
- name: memory
threshold: 80
# Environment Setup Instructions:
# 1. Set JWT_SECRET in Render dashboard (generate a strong secret)
# 2. Deploy via Render dashboard or git push to connected repo
# 3. Monitor API health at /health endpoint
# 4. Access API docs at /docs endpoint