-
Notifications
You must be signed in to change notification settings - Fork 2
/
render.yaml
70 lines (68 loc) · 1.56 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
previewsEnabled: true
services:
- name: website
type: web
env: node
region: frankfurt
rootDir: website
buildCommand: npm install && npm run build
buildFilter:
paths:
- website/src/**/*
- website/static/**/*
startCommand: node build/index.js
autoDeploy: false
envVars:
- fromGroup: strapi-auth
- key: NODE_VERSION
value: ~16.13.0
- key: PUBLIC_STRAPI_URL
fromService:
name: admin
type: web
envVarKey: RENDER_EXTERNAL_URL
- name: admin
type: web
env: node
rootDir: admin
plan: starter
region: frankfurt
buildCommand: yarn install && yarn build
startCommand: yarn start
healthCheckPath: /_health
autoDeploy: false
buildFilter:
paths:
- admin/config/**/*
- admin/src/**/*
disk:
name: strapi-uploads
mountPath: /opt/render/project/src/public/uploads
sizeGB: 2
envVars:
- fromGroup: strapi-auth
- key: NODE_VERSION
value: ~16.13.0
- key: NODE_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: strapi
property: connectionString
- key: JWT_SECRET
generateValue: true
- key: ADMIN_JWT_SECRET
generateValue: true
- key: APP_KEYS
generateValue: true
- key: API_TOKEN_SALT
generateValue: true
databases:
- name: strapi
plan: starter
region: frankfurt
envVarGroups:
- name: strapi-auth
envVars:
- key: STRAPI_WEBSITE_TOKEN
generateValue: true