make redis server connection configurable through $REDIS_URL#277
make redis server connection configurable through $REDIS_URL#277lina-bh wants to merge 1 commit intopSpitzner:release/2.0.0from
Conversation
|
Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry. |
|
I see that you have a new release coming up, so I'll wait for your lead on what to put in the changelog and where |
|
Hi @lina-bh, thanks for the PR. I think this is a good addition. I would make this part of 2.0. Please base the PR on the Also, we should document it in docs/configuration.md, ideally with a small sample compose file to showcase the benefits. best, |
So that a Redis instance outside of the container may be used, read the
REDIS_URLenvironment variable. If it is set and non-empty, assume it is aredis://protocol URL and connect to that instead of forking a Redis instance inside the container. This allows the well understood behaviour of a dedicated Redis image, or a Redis running outside a container, to be used, including more flexible logging and control over configuration.