Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a docker-compose config file to speed initial assessment #93

Open
notmymonkeys opened this issue Nov 16, 2017 · 2 comments
Open

Comments

@notmymonkeys
Copy link

I'm trying to evaluate this project to use in my project. It looks very promising. With my limited knowledge of rails ecosystem it's quite a struggle to start this even locally not to mention deploying to prod like environment.
In my case I cannot install redis or postgressql on my local machine so I'm using docker version of those that runs on virtualbox docker-machine. This requires to specify DATABASE_URL and REDIS_URL to both rails and sidekiq configuration.
Having docker-compose file that could be use as reference would be great help.

I can try to dockerize this project but will need some help in order to understand how to pass redis and postgresql connection strings to rails/sidekiq.

@notmymonkeys
Copy link
Author

I have most of it running. Seems that when I start sidekiq it doesn't connect to the database. How can you configure database url for sidekiq workers?

@thomasleese
Copy link
Contributor

Hi!

This project uses govuk_sidekiq which configures Redis for us. It looks for either a REDIS_URL or REDIS_HOST/REDIS_PORT environment variable: https://github.com/alphagov/govuk_sidekiq/blob/master/lib/govuk_sidekiq/railtie.rb#L6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants