-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
110 lines (107 loc) · 3.03 KB
/
render.yaml
File metadata and controls
110 lines (107 loc) · 3.03 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Render Blueprint - BlastAPI
# https://render.com/docs/blueprint-spec
services:
# ===================
# Express.js Backend
# ===================
- type: web
name: blastapi-server
runtime: node
region: oregon
plan: free
buildCommand: |
corepack enable &&
pnpm install --frozen-lockfile &&
pnpm --filter @blastapi/db db:generate &&
pnpm --filter @blastapi/db build &&
pnpm --filter @blastapi/validators build &&
pnpm --filter @blastapi/utils build &&
pnpm --filter @blastapi/server build
startCommand: pnpm --filter @blastapi/server start
healthCheckPath: /health
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 4000
- key: DATABASE_URL
sync: false # Set manually in Render dashboard
- key: DIRECT_URL
sync: false # Set manually - NeonDB direct connection
- key: AUTH_SECRET
sync: false
- key: REDIS_URL
fromService:
name: blastapi-redis
type: redis
property: connectionString
- key: REDIS_HOST
fromService:
name: blastapi-redis
type: redis
property: host
- key: REDIS_PORT
fromService:
name: blastapi-redis
type: redis
property: port
- key: REDIS_PASSWORD
value: ""
- key: CLIENT_URL
sync: false # Set manually - e.g. https://blastapi-web.onrender.com
autoDeploy: true
# ===================
# Next.js Frontend
# ===================
- type: web
name: blastapi-web
runtime: node
region: oregon
plan: free
buildCommand: |
corepack enable &&
pnpm install --frozen-lockfile &&
pnpm --filter @blastapi/db db:generate &&
pnpm --filter @blastapi/db build &&
pnpm --filter @blastapi/validators build &&
pnpm --filter @blastapi/utils build &&
pnpm --filter @blastapi/web build
startCommand: pnpm --filter @blastapi/web start
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 3000
- key: DATABASE_URL
sync: false # Set manually in Render dashboard
- key: DIRECT_URL
sync: false # Set manually - NeonDB direct connection
- key: AUTH_SECRET
sync: false
- key: AUTH_GOOGLE_ID
sync: false
- key: AUTH_GOOGLE_SECRET
sync: false
- key: AUTH_GITHUB_ID
sync: false
- key: AUTH_GITHUB_SECRET
sync: false
- key: NEXT_PUBLIC_SERVER_URL
fromService:
name: blastapi-server
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: AUTH_TRUST_HOST
value: "true"
- key: AUTH_URL
sync: false # Set manually: https://blastapi-web.onrender.com
autoDeploy: true
# ===================
# Redis (for Bull Queue)
# ===================
- type: redis
name: blastapi-redis
region: oregon
plan: free # 25MB, no persistence
maxmemoryPolicy: noeviction
ipAllowList: [] # Allow only internal connections