-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
64 lines (57 loc) · 1.54 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
# Quick links to the docs:
# - Redwood on Render: https://render.com/docs/deploy-redwood
# - Render's Blueprint spec: https://render.com/docs/yaml-spec
services:
- name: sonastik-ee-web
type: web
env: static
buildCommand: cd sonastik-ee && corepack enable && yarn install && yarn rw deploy render web
staticPublishPath: ./sonastik-ee/web/dist
envVars:
- key: SKIP_INSTALL_DEPS
value: true
routes:
- type: rewrite
source: /sonastik-ee/.redwood/functions/*
# Replace `destination` here after your first deploy:
#
# ```
# destination: https://my-redwood-project-api.onrender.com/*
# ```
destination: https://sonastik-ee-api.onrender.com/*
- type: rewrite
source: /*
destination: /200.html
- name: sonastik-ee-api
type: web
plan: starter
env: node
region: frankfurt
buildCommand: cd sonastik-ee && corepack enable && yarn && yarn rw build api
startCommand: cd sonastik-ee && yarn rw deploy render api
envVars:
- key: DATABASE_URL
fromDatabase:
name: sonastik-ee-db
property: connectionString
- key: CACHE_HOST
fromService:
type: redis
name: sonastik-redis
property: connectionString
- key: DEEPL_API_KEY
sync: false
- key: SESSION_SECRET
sync: false
# A Redis instance
- type: redis
name: sonastik-redis
ipAllowList: # required
- source: 0.0.0.0/0
description: everywhere
region: frankfurt
plan: free # optional (defaults to starter instance type)
databases:
- name: sonastik-ee-db
region: frankfurt
plan: starter