How to connect Redis

System Information
  • Strapi Version: 3.4.1
  • Operating System: win 10 pro
  • Database: mysql and redis
  • Node Version: 12.19.0
  • NPM Version: 6.14.8
  • Yarn Version: 1.22.10

I want to dockerize strapi with mysql and redis. I am trying to make 3 different container for strapi ,mysql and redis. I can connect strapi container with mysql. it work perfectly . but when i add redis i can’t able to strat strapi project. It give me 'connect ECONNREFUSED 127.0.0.1:6379 ’ error. Please anybody help me how can i connect my custom strapi container with redis.

Redis is not supported by Strapi, see docs

Strapi doesn’t have connector for redis.

If you are looking something for cache this is recommended GitHub - patrixr/strapi-middleware-cache: A cache middleware for https://strapi.io

i can connect redis with my strapi project. and it work perfectly. but now i want to use redis as a docker container.

@jamir, I know it’s not related to your question, but could you help me setup redis as the main database connection? i’m just starting with strapi and the provided strapi-hook-redis has no docs :frowning: