Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Override 127.0.0.1 host #72

Open
valentin-harrang opened this issue Oct 26, 2021 · 1 comment
Open

Override 127.0.0.1 host #72

valentin-harrang opened this issue Oct 26, 2021 · 1 comment

Comments

@valentin-harrang
Copy link

Hi,

Is it possible to override the hostname of the strapi-middleware-cache plugin? I am using Redis container in my docker-compose.yml and by default Strapi calls host 127.0.0.1 instead of my container name. I would like replace 127.0.0.1 by redis

Because I get this error:

error [cache] redis connection failed {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":6379}

I tried to add REDIS_HOST env variable but same problem

@patrixr
Copy link
Owner

patrixr commented Oct 27, 2021

Hi @valentin-harrang, could you share your config ?

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

No branches or pull requests

2 participants