Open dickensdjj opened 5 years ago
Redis uses 3 databases. From your code above, 2 of the databases (0,1) run on host 'redis' the session controller (database 2) runs on host 'redis_session'. I am struggling to setup PHPStorm so that is as much help as I can give until someone replies to me on here with a bit of help on setting it up.
Hi guys, I currently having a redis connection error when I try to run some scripts.
Here is the context:
There is a webscript directory which I put down the src/ directory (this directory reckons as the root directory of Magento) and the file structure will be like this
Structure: src/webscript/test.php
Code of test.php:
Code of env.php:
Code of docker_compose.yml:
However, when I try to run this script with my phpstorm debugger, it pops up the error message:
It seems like the they cannot find the
redis:6379
. I have done some search about this redis connection with magento, but it is barely to find and related information.I am appreciated if someone can put me out of this puzzle. Thanks,