-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
64 lines (62 loc) · 1.43 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
services:
# Strapi instance
- type: web
name: tbcc-admin
env: node
plan: free
region: singapore
repo: https://github.com/hughlilly/tbcc-db
branch: main
autoDeploy: true
buildCommand: yarn install && yarn build
startCommand: yarn start
healthCheckPath: /_health
envVars:
- key: NODE_VERSION
value: ~16.13.0
- key: NODE_ENV
value: production
- key: CLOUDINARY_NAME
sync: false
- key: CLOUDINARY_KEY
sync: false
- key: CLOUDINARY_SECRET
sync: false
- key: DATABASE_URL
fromDatabase:
name: tbcc-db
property: connectionString
- key: JWT_SECRET
generateValue: true
- key: ADMIN_JWT_SECRET
generateValue: true
- key: API_TOKEN_SALT
generateValue: true
- key: APP_KEYS
generateValue: true
# Remix website
- type: web
name: tbcc
env: node
plan: free
region: singapore
repo: https://github.com/hughlilly/tbcc
branch: main
autoDeploy: true
buildCommand: npm install && npm run build
startCommand: npm start
buildFilter:
paths:
- app/**/*.*
envVars:
- key: STRAPI_URL_BASE
fromService:
type: web
name: tbcc-admin
envVarKey: RENDER_EXTERNAL_URL
# PostgreSQL database
databases:
- name: tbcc-db
plan: free
region: singapore
databaseName: strapi_pg_prod