-
Notifications
You must be signed in to change notification settings - Fork 364
/
render.yaml
82 lines (80 loc) · 2.34 KB
/
render.yaml
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
# render.yaml is a YAML file that describes the Render deployment.
# See https://render.com/docs/blueprint-spec for more info.
# I couldn't find a schema online, and the docs are a bit lacking, but there are
# examples on github: https://github.com/search?q=language%3Ayaml+render.yaml+%22runtime%3A+node%22&type=code
# and their api reference: https://api-docs.render.com/reference/create-service
services:
# packages/app
- type: web
name: app
runtime: node
plan: free
region: frankfurt
buildCommand:
YARN_NM_MODE=hardlinks-local yarn install && yarn workspace @theatre/app
run cli prod build
# todo
startCommand: yarn workspace @theatre/app run start
healthCheckPath: /
envVars:
- key: DATABASE_URL
fromDatabase:
name: app-postgres
property: connectionString
- key: NODE_ENV
value: production
- key: GITHUB_ID
sync: false
- key: GITHUB_SECRET
sync: false
# port is provided by render
# - key: PORT
# sync: false
- key: HOST
value: localhost
- key: STUDIO_AUTH_JWT_PRIVATE_KEY
sync: false
- key: STUDIO_AUTH_JWT_PUBLIC_KEY
sync: false
- key: NEXT_PUBLIC_WEBAPP_URL
fromService:
name: app
type: web
envVarKey: RENDER_EXTERNAL_URL
# packages/syncServer
- type: web
name: syncServer
runtime: node
plan: free
region: frankfurt
buildCommand:
YARN_NM_MODE=hardlinks-local yarn install && yarn workspace
@theatre/sync-server run cli prod build
startCommand: yarn workspace @theatre/sync-server run cli prod start
healthCheckPath: /
envVars:
- key: DATABASE_URL
fromDatabase:
name: syncServer-postgres
property: connectionString
- key: NODE_ENV
value: production
- key: HOST
value: localhost
# port is provided by render
- key: APP_URL
fromService:
name: app
type: web
envVarKey: RENDER_EXTERNAL_URL
databases:
- name: app-postgres
plan: free
region: frankfurt
ipAllowList: [] # only allow internal connections
postgresMajorVersion: 15
- name: syncServer-postgres
plan: free
region: frankfurt
ipAllowList: [] # only allow internal connections
postgresMajorVersion: 15