-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
68 lines (64 loc) · 1.85 KB
/
Copy pathrender.yaml
File metadata and controls
68 lines (64 loc) · 1.85 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
# MAZE demo on Render — Blueprint
# Dashboard: https://dashboard.render.com/ → New → Blueprint → repo matigulin/maze-ui, branch dev
databases:
- name: matigulin-maze-db
plan: free
region: frankfurt
services:
- type: keyvalue
name: matigulin-maze-redis
plan: free
region: frankfurt
maxmemoryPolicy: noeviction
ipAllowList: []
- type: web
name: matigulin-maze-api
runtime: node
region: frankfurt
plan: free
rootDir: Server
branch: dev
buildCommand: NPM_CONFIG_PRODUCTION=false npm install && npm run build && npm run db:migrate
startCommand: sh -c "npm run db:bootstrap-staff && exec npm start"
healthCheckPath: /health/live
envVars:
- key: NODE_ENV
value: production
- key: HOST
value: 0.0.0.0
- key: DATABASE_URL
fromDatabase:
name: matigulin-maze-db
property: connectionString
- key: REDIS_URL
fromService:
type: keyvalue
name: matigulin-maze-redis
property: connectionString
- key: JWT_SECRET
generateValue: true
- key: JWT_REFRESH_SECRET
generateValue: true
- key: AUTH_DEV_OTP
value: "true"
- key: CORS_ORIGIN
value: https://matigulin-maze-web.onrender.com
- type: web
name: matigulin-maze-web
runtime: node
region: frankfurt
plan: free
rootDir: Client
branch: dev
buildCommand: NPM_CONFIG_PRODUCTION=false npm install && API_INTERNAL_URL=https://matigulin-maze-api.onrender.com npm run build
startCommand: npx next start -H 0.0.0.0 -p $PORT
envVars:
- key: NODE_ENV
value: production
- key: NEXT_PUBLIC_API_BASE_URL
value: /api/v1
- key: API_INTERNAL_URL
fromService:
type: web
name: matigulin-maze-api
envVarKey: RENDER_EXTERNAL_URL