forked from OpenPipe/OpenPipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
54 lines (51 loc) · 1.44 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
databases:
- name: querykey-prod
databaseName: querykey_prod
user: querykey
plan: "pro plus"
services:
- type: web
name: querykey-prod-web
runtime: docker
dockerfilePath: ./app/Dockerfile
dockerContext: .
healthCheckPath: /api/healthcheck
plan: pro
domains:
- app.openpipe.ai
envVars:
- key: DATABASE_URL
fromDatabase:
name: querykey-prod
property: connectionString
- fromGroup: querykey-prod
# Render support says we need to manually set this because otherwise
# sometimes it checks a different random port that NextJS opens for
# liveness and the liveness check fails.
- key: PORT
value: 10000
scaling:
minInstances: 1
maxInstances: 10
targetMemoryPercent: 60 # optional if targetCPUPercent is set (valid: 1-90)
targetCPUPercent: 60 # optional if targetMemory is set (valid: 1-90)
- type: web
name: querykey-prod-wss
runtime: docker
dockerfilePath: ./app/Dockerfile
dockerContext: .
plan: free
dockerCommand: pnpm tsx src/wss-server.ts
- type: worker
name: querykey-prod-worker
runtime: docker
dockerfilePath: ./app/Dockerfile
dockerContext: .
plan: pro
dockerCommand: /code/app/scripts/run-workers-prod.sh
envVars:
- key: DATABASE_URL
fromDatabase:
name: querykey-prod
property: connectionString
- fromGroup: querykey-prod