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.
@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
you have to create a network and add each container to that network, then you can refer to each container by its name instead 127.0.0.1, because 127.0.0.1 refers to localhost… and each container has their own dynamic ip address… To solve this… you can address them by container name http://continer-name:6379