-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrender.yaml
68 lines (68 loc) · 2.05 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
services:
# API (backend)
- type: web
name: xxxxx-api # replace xxxxx with the customer name
branch: xxxxx # replace xxxxx with the customer name
env: node
region: frankfurt
rootDir: backend
buildCommand: npm run build
startCommand: npm run prod
plan: starter
autoDeploy: true
buildFilter:
paths:
- backend/src
envVars:
# Dotfile
- key: DOTFILE_BASE_URL
value: https://api.dotfile.com/v1
- key: DOTFILE_KEY
sync: false
- key: TEMPLATE_ID
sync: false
- key: WEBHOOK_SECRET
value: dotsecret.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # generate a token to replace xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (https://it-tools.tech/token-generator?length=32)
# Email
- key: SMTP_HOST
value: smtp.postmarkapp.com
- key: SMTP_PORT
value: 587
- key: EMAIL_FROM
value: [email protected] # replace xxxxx with the customer name
- key: EMAIL_USER
sync: false
- key: EMAIL_PASSWORD
sync: false
# Other
- key: LOGO_URL
sync: false
- key: APP_URL
fromService:
type: web
name: xxxxx-app # replace xxxxx with the customer name
envVarKey: CUSTOM_DOMAIN # APP (frontend) url
# APP (frontend)
- type: web
name: xxxxx-app # replace xxxxx with the customer name
branch: xxxxx # replace xxxxx with the customer name
env: static
rootDir: frontend
buildCommand: npm run build
staticPublishPath: build
autoDeploy: true
buildFilter:
paths:
- frontend/src
domains:
- xxxxx.onboarding.dotfile.com # replace xxxxx with the customer name
envVars:
- key: REACT_APP_BASE_URL_API
fromService:
type: web
name: xxxxx-api # replace xxxxx with the customer name
envVarKey: RENDER_EXTERNAL_URL # API (backend) url
- key: REACT_APP_BASE_URL
value: xxxxx.onboarding.dotfile.com # replace xxxxx with the customer name
- key: REACT_APP_ENV
value: production