forked from sigle/sigle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
59 lines (57 loc) · 1.48 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
services:
# Sigle api server instance
- name: sigle-api
type: web
env: node
region: oregon
plan: Starter
branch: main
healthCheckPath: /health
autoDeploy: true
buildCommand: cd server &&
pnpm install --filter=@sigle/server &&
pnpm run build &&
pnpm prisma migrate deploy
startCommand: cd server &&
pnpm run start
domains:
- api.sigle.io
buildFilter:
paths:
# changes to the frontend dir do not match this pattern
- server/**
ignoredPaths:
# Do not deploy if test file changed
- server/**/*.test.ts
envVars:
- key: APP_URL
value: 'https://app.sigle.io'
# Value used to decode the cookies
- key: NEXTAUTH_URL
value: 'https://app.sigle.io'
# Inject Redis connection url from the redis instance
- key: REDIS_DATABASE_URL
fromService:
type: redis
name: sigle-redis
property: connectionString
# Inject Postgres connection url from the redis instance
- key: PG_DATABASE_URL
fromDatabase:
name: sigle-postgres
property: connectionString
# Redis database
- name: sigle-redis
type: redis
region: oregon
plan: Starter
# only allow internal connections
ipAllowList: []
databases:
# Postgres database
- name: sigle-postgres
region: oregon
plan: Starter
postgresMajorVersion: 14
# only allow internal connections
ipAllowList: []