Access Remote Mysql installed in Linux DB from Docker java

Need to know to connect mysql server which is installed in linux from docker java application.

As per the documentation need to use host.docker.internal for development purpose.
Need to know how to access in prod environment real time.