forked from render-examples/express-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
47 lines (44 loc) · 1.15 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
services:
- type: web
env: node
name: prod-backend1
repo: https://github.com/Shrinidhi1/express-hello-world.git
buildFilter:
paths:
- apps/backend/**
buildCommand: yarn && yarn build --filter=backend
startCommand: cd apps/backend; yarn start
envVars:
- key: DATABASE_URL
fromDatabase:
name: prod-db1
property: connectionString
- key: REDIS_URL
fromService:
name: prod-redis1
type: redis
property: connectionString
- type: web
env: static
name: prod-frontend1
repo: https://github.com/Shrinidhi1/express-hello-world.git
buildFilter:
paths:
- apps/frontend/**
buildCommand: yarn && yarn build --filter=frontend
staticPublishPath: ./apps/frontend/build
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: REACT_APP_GRAPHQL_HOST
fromService:
name: prod-backend1
type: web
property: host
- type: redis
name: prod-redis1
ipAllowList: []
databases:
- name: prod-db1