This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.com.json
355 lines (355 loc) · 11.8 KB
/
render.com.json
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
{
"id": "dev.inpyjamas.schemas.render.com.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON Schema for render.yaml IAC files",
"description": "",
"type": "object",
"additionalProperties": false,
"required": ["services"],
"properties": {
"databases": {
"type": "array",
"items": { "$ref": "#/definitions/Databases" }
},
"services": {
"type": "array",
"items": {
"$ref": "#/definitions/Services"
}
},
"envVarGroups": {
"type": "array",
"items": {
"$ref": "#/definitions/EnvVarGroup"
}
}
},
"definitions": {
"Services": {
"type": "object",
"required": ["name", "type", "env"],
"description": "Each service should have a `type`, `name`, and `env`. Cron jobs must have a `schedule`. Each service should have a `startCommand` unless it’s a Docker service. For Docker services, Render users the command in your Dockerfile. This can be overridden by specifying dockerCommand in your service definition.",
"allOf": [
{
"if": { "properties": { "type": { "const": "cron" } } },
"then": { "properties": { "schedule": { "optional": false } } }
},
{
"if": { "properties": { "env": { "const": "docker" } } },
"then": { "properties": { "startCommand": { "optional": true } } },
"else": { "properties": { "startCommand": { "optional": false } } }
}
],
"properties": {
"name": { "type": "string" },
"type": {
"type": "string",
"enum": ["pserv", "web", "worker", "cron"],
"description": "The service type must be one of the following: 'web' for a web service, 'worker' for a background worker, 'pserv' for a private service, 'cron' for a cron job. A static site is not considered a service type. It is a web service with a static environment."
},
"env": {
"type": "string",
"description": "The service environment must be one of the following: `docker`, `elixir`, `go`, `node`, `python`, `ruby`, `rust`, `static`",
"enum": [
"docker",
"elixir",
"go",
"node",
"python",
"ruby",
"rust",
"static"
]
},
"region": {
"$ref": "#/definitions/Region"
},
"repo": {
"type": "string",
"format": "uri",
"qt-uri-protocols": ["https", "http"],
"qt-uri-extensions": [".git"],
"description": "Services in render.yaml can omit a repo. If a repo is missing, it is assumed to be the repo the YAML file is in. The specified repo must be accessible to you. You can also omit a branch. Render will use the repo’s default branch if it’s omitted."
},
"plan": { "$ref": "#/definitions/Plan" },
"branch": {
"type": "string",
"description": "Services in render.yaml can omit a repo. If a repo is missing, it is assumed to be the repo the YAML file is in. The specified repo must be accessible to you. You can also omit a branch. Render will use the repo’s default branch if it’s omitted."
},
"dockerCommand": {
"type": "string",
"description": "For Docker services, Render users the command in your Dockerfile. This can be overridden by specifying dockerCommand in your service definition."
},
"healthCheckPath": {
"type": "string",
"description": "You can set a health check path for your HTTP service for zero downtime deploys by adding the `healthCheckPath` field."
},
"numInstances": {
"type": "integer",
"description": "You can set the number of instances you want for your service by setting the `numInstances` field."
},
"buildCommand": {
"type": "string",
"description": "e.g. `npm run build`"
},
"startCommand": {
"type": "string",
"description": "e.g. `npm start` or `node index.js`"
},
"domains": {
"type": "array",
"description": "You can specify custom domains for your service in the domains field. If a domain is an apex domain, a www. subdomain will be added automatically and will redirect to the apex domain. If a domain is a www. subdomain, the apex domain will be added automatically and will redirect to the www. domain. Every web service is always accessible at its .onrender.com subdomain.",
"items": {
"type": "string",
"format": "hostname"
}
},
"autoDeploy": {
"type": "boolean",
"optional": true
},
"schedule": {
"type": "string",
"description": "Cron jobs must have a `schedule`."
},
"dockerfilePath": {
"type": "string",
"description": "If your service is Docker-based, i.e. it has env: docker, then you can optionally specify the dockerfilePath and dockerContext. These are relative to your repo root. This is useful for mono-repo Docker services."
},
"dockerContext": {
"type": "string",
"description": "If your service is Docker-based, i.e. it has env: docker, then you can optionally specify the dockerfilePath and dockerContext. These are relative to your repo root. This is useful for mono-repo Docker services."
},
"staticPublishPath": {
"type": "string"
},
"pullRequestPreviewsEnabled": {
"type": "boolean",
"optional": true
},
"disk": {
"$ref": "#/definitions/Disk"
},
"headers": {
"type": "array",
"items": {
"$ref": "#/definitions/Header"
}
},
"routes": {
"type": "array",
"items": {
"$ref": "#/definitions/Route"
}
},
"envVars": {
"type": "array",
"description": "You can define environment groups in your YAML file. Environment groups can have zero or more environment variables. The environment variables in an environment group cannot depend on other resources, unlike the environment variables in a service. However, you can still generate environment variables within an environment group.",
"items": {
"$ref": "#/definitions/EnvVar"
}
}
}
},
"Header": {
"type": "object",
"description": "You can specify HTTP headers for your static site with the headers field like you can in the dashboard.",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": ["name", "path", "value"],
"title": "Header"
},
"Route": {
"type": "object",
"description": "You can specify redirect and rewrite routes for your static site with the routes field just like in the dashboard.",
"additionalProperties": false,
"properties": {
"type": {
"type": "string"
},
"source": {
"type": "string"
},
"destination": {
"type": "string"
}
},
"required": ["destination", "source", "type"],
"title": "Route"
},
"Region": {
"type": "string",
"enum": ["frankfurt", "oregon"],
"description": "A service can be deployed in a specific `region` by adding an optional `region` field. If specified, the `region` field must be one of following: `oregon`, `frankfurt`. If not specified, the region defaults to oregon. Static sites can not have a region"
},
"Databases": {
"type": "object",
"additionalProperties": false,
"description": "You can create databases by defining them in render.yaml. A database only needs a name — all other fields are optional. You can also set the PostgreSQL databaseName, user, and plan.",
"properties": {
"name": {
"type": "string"
},
"plan": {
"$ref": "#/definitions/Plan"
},
"databaseName": {
"type": "string"
},
"region": {
"$ref": "#/definitions/Region"
},
"user": {
"type": "string"
},
"ipAllowList": {
"optional": true,
"description": "You can specify which IP addresses can access your database from outside Render’s network using an ipAllowList. optional (defaults to allow all)",
"type": "array",
"items": {
"$ref": "#/definitions/IPAllowList"
}
}
},
"required": ["name"],
"title": "Databases"
},
"EnvVar": {
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"type": "string",
"optional": false
},
"fromService": {
"$ref": "#/definitions/FromService"
},
"fromGroup": {
"type": "string"
},
"generateValue": {
"type": "boolean"
},
"sync": {
"type": "boolean"
},
"value": {
"type": "string"
},
"fromDatabase": {
"$ref": "#/definitions/FromDatabase"
}
},
"required": [],
"title": "ServiceEnvVar"
},
"FromDatabase": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"property": {
"type": "string"
}
},
"required": ["name", "property"],
"title": "FromDatabase"
},
"IPAllowList": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"format": "ipv4"
},
"description": {
"type": "string"
}
},
"required": ["description", "source"],
"title": "IPAllowList"
},
"FromService": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"property": {
"type": "string"
},
"envVarKey": {
"type": "string"
}
},
"required": ["name", "type"],
"title": "FromService"
},
"EnvVarGroup": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"envVars": {
"type": "array",
"items": {
"$ref": "#/definitions/EnvVar"
}
}
},
"required": ["envVars", "name"],
"title": "EnvVarGroup"
},
"Disk": {
"type": "object",
"description": "You can specify whether your service has a Disk attached to it. A disk must have a `name`, `mountPath`, and (optionally) a size in GB (`sizeGB`).",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"mountPath": {
"type": "string"
},
"sizeGB": {
"type": "integer",
"optional": true
}
},
"required": ["mountPath", "name"],
"title": "Disk"
},
"Plan": {
"type": "string",
"description": "The service plan can be specified by name and is case insensitive. If it’s omitted, the plan will default to the “Starter” plan. The following values are valid for plans: `Starter`, `Starter Plus`, `Standard`, `Standard Plus`, `Pro`, `Pro Plus`",
"enum": [
"starter",
"starter plus",
"standard",
"standard plus",
"pro",
"pro plus"
]
}
}
}