Description:
Running a springboot application and redis server on a docker engine.
I have exposed the port 8080 of the docker engine as the point of contact to my springboot application.
When making a curl command to hit the controller endpoint of my springboot application, the app fails in making a connection to redis.
However if I exec into the springboot app, and try the command : redis-cli -h redis -p 6379 ping , I get a successful PONG response back.
Also if I start a redis server directly on my windows machine and run the springboot app also directly on the machine, the app is able to connect to redis (given I update my application.properties file)
I have attached the github link to my repo which has the application.properties, docker-compose, dockerfile, and everything else.
Description: Running a springboot application and redis server on a docker engine. I have exposed the port 8080 of the docker engine as the point of contact to my springboot application. When making a curl command to hit the controller endpoint of my springboot application, the app fails in making a connection to redis. However if I exec into the springboot app, and try the command : redis-cli -h redis -p 6379 ping , I get a successful PONG response back.
Also if I start a redis server directly on my windows machine and run the springboot app also directly on the machine, the app is able to connect to redis (given I update my application.properties file)
I have attached the github link to my repo which has the application.properties, docker-compose, dockerfile, and everything else.
https://github.com/Beekay97/GameApp.git
Here is the error log on making the curl command to the app endpoint and the actuator health endpoint.
App Endpoint:
Actuator Health endpoint