-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
43 lines (41 loc) · 1.09 KB
/
render.yaml
File metadata and controls
43 lines (41 loc) · 1.09 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
# render.yaml
services:
# Backend API Service
- type: web
name: legal-ai-backend
runtime: node
region: oregon # or singapore, frankfurt, ohio
plan: free # or starter ($7/mo), standard ($25/mo)
buildCommand: npm install && npm run build
startCommand: node dist/server.js
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 10000
- key: DATABASE_URL
fromDatabase:
name: legal-ai-db
property: connectionString
- key: JWT_SECRET
generateValue: true
sync: false
- key: JWT_REFRESH_SECRET
generateValue: true
sync: false
# Health check
healthCheckPath: /health
# Keep-alive cron job to prevent cold starts
- type: cron
name: keep-alive
runtime: node
schedule: "*/14 * * * *" # Every 14 minutes
buildCommand: echo "Keep alive cron job"
startCommand: curl https://legal-ai-backend.onrender.com/health
databases:
# PostgreSQL Database
- name: legal-ai-db
databaseName: legalai
user: legalai_user
plan: free
region: oregon