-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
57 lines (53 loc) · 1.9 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
# Example Render configuration. You will need to adjust this for the different services you run.
services:
- type: web
name: rails
env: ruby
region: oregon # the region must be consistent across all services for the internal keys to be read
buildCommand: "./bin/render-build.sh"
startCommand: bundle exec rails s
healthCheckPath: "/up"
envVars:
- key: RAILS_MASTER_KEY
sync: false
- key: WEB_CONCURRENCY
value: 1
- key: DATABASE_URL
fromDatabase:
name: postgres
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: redis
property: connectionString
- type: redis
name: redis
region: oregon # the region must be consistent across all services for the internal keys to be read
ipAllowList: [] # only allow internal connections
plan: free # optional (defaults to starter)
maxmemoryPolicy: noeviction # optional (defaults to allkeys-lru)
# Uncomment the following blueprint if you want to enable a background worker
# - type: worker
# name: sidekiq-worker
# env: ruby
# plan: starter # no free option for bg workers
# region: oregon # the region must be consistent across all services for the internal keys to be read
# buildCommand: "./bin/render-build-worker.sh --skip-migrate"
# startCommand: bundle exec sidekiq -e production
# envVars:
# - key: DATABASE_URL
# fromDatabase:
# name: postgres
# property: connectionString
# - key: REDIS_URL
# fromService:
# name: redis
# type: redis
# property: connectionString
# - key: RAILS_MASTER_KEY
# sync: false
databases:
- name: postgres
region: oregon # the region must be consistent across all services for the internal keys to be read
ipAllowList: [] # only allow internal connections