'Accessing Redis running on local machine from docker container
I am deploying 2 .war files in tomcat inside docker container. One of these .war file tries to make a connection to Redis and says : not able to connect to localhost:6379.
I am neither running Redis locally nor on docker container. But seems, this war file is using it internally and tries to connect to it on port localhost:6379. And throws this connection error.
Is there any way to specify this in tomcat configuration or in dockerfile saying that access this Redis on host.docker.internal:6379 instead of localhost:6379??
Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
