Extracted redis related functionality into a repository.
Use docker env variable as redis address if avaliable.