I have tomcat WAR which I want to run inside a Docker having tomcat image. There is a jdbc java Code in the war which access my local mysql from the docker container. But Docker is not able to connect to the local mysql.
I am able to run my war in tomcat locally. I have changed my my.cnf
file bind-address to *.
bind-address = *
How can I configure my jdbc url so that it can connect to local mysql inside the Docker. After googling I came to know about the docker.for.mac.host.internal
command map to host ip inside docker. I am not sure how to use it.