forked from render-examples/sidekiq
-
Notifications
You must be signed in to change notification settings - Fork 3
/
render.yaml
37 lines (35 loc) · 866 Bytes
/
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
services:
# Create a redis instance
- type: redis
name: sidekiq-redis
region: ohio
maxmemoryPolicy: noeviction
ipAllowList: []
# Let's create our background worker
- type: worker
name: sidekiq-worker
env: ruby
region: ohio
buildCommand: bundle install
startCommand: bundle exec sidekiq -r ./main.rb
autoDeploy: false
envVars:
- key: REDIS_URL
fromService:
type: redis
name: sidekiq-redis
property: connectionString
# Create the web server hosting sinatra
- type: web
name: sinatra-web
env: ruby
region: ohio
buildCommand: bundle install
startCommand: bundle exec ruby main.rb
autoDeploy: false
envVars:
- key: REDIS_URL
fromService:
type: redis
name: sidekiq-redis
property: connectionString