Skip to content

Commit

Permalink
Add sidekiq services to render.yaml
Browse files Browse the repository at this point in the history
Following[1] I've configured a redis service and a worker. I noticed
the region was missing in this blueprint for the existing services, so
I've added those too.

[1] https://render.com/docs/deploy-rails-sidekiq
  • Loading branch information
chrislo committed Sep 10, 2023
1 parent 670b86d commit c75d63d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
databases:
- name: musiccoop
region: oregon
databaseName: musiccoop
user: musiccoop

services:
- type: web
name: musiccoop
region: oregon
runtime: ruby
buildCommand: "./bin/render-build.sh"
startCommand: "bundle exec puma -C config/puma.rb"
Expand All @@ -16,3 +18,22 @@ services:
property: connectionString
- key: RAILS_MASTER_KEY
sync: false
- type: redis
name: sidekiq-redis
region: oregon
maxmemoryPolicy: noeviction
ipAllowList: [] # only allow internal connections
- type: worker
name: sidekiq-worker
runtime: ruby
region: oregon
buildCommand: bundle install
startCommand: bundle exec sidekiq
envVars:
- key: REDIS_URL
fromService:
type: redis
name: sidekiq-redis
property: connectionString
- key: RAILS_MASTER_KEY
sync: false

0 comments on commit c75d63d

Please sign in to comment.