In a project I’m working on we have multiple application components which use sidekiq. I wanted to run just one docker container with sidekiq, and I was certain I could find information about how to run it in docker using a quick google search, but nope!

I’ve created a public repository for this, which you can use by forking the repo and adding the gems you want to use to the Gemfile. This assumes that the workers are distributed as Ruby gems, which is how we let different components deliver workers to be run by the sidekiq instance.

It relies on consul to find the redis instance to use, so you should be running the progrium/consul and gliderlabs/registrator docker containers to make life easier for you.