-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
39 lines (37 loc) · 1.05 KB
/
render.yaml
File metadata and controls
39 lines (37 loc) · 1.05 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
services:
# NestJS Backend
- type: web
name: webiu-backend
env: node
rootDir: backend # Tell Render the app is in the backend/ folder
plan: free
buildCommand: npm install --production=false && npm run build && npm prune --production
startCommand: npm run prisma:push && NODE_ENV=production npm run start:prod
envVars:
- key: DATABASE_URL
fromDatabase:
name: webiu-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: webiu-redis
property: connectionString
- key: PORT
value: 3000
- key: GITHUB_TOKEN
sync: false
- key: GITHUB_ORG
sync: false
- key: GITHUB_WEBHOOK_SECRET
sync: false
# Redis Instance (Key Value)
- type: redis
name: webiu-redis
plan: free # Render Free tier Redis
ipAllowList: [] # Only allow internal connections from other services
databases:
- name: webiu-db
plan: free # Render Free tier Postgres
databaseName: webiu
user: webiu