Accessing local mysql server datbase from docker container spring boot app

I moved the topic from Tips & Tricks because that is for sharing tips and tricks not for questions. However I am not sure that you use the open source version and not Docker Desktop, so please share more details about your environment and software versions.

Please, also share how you try to access the service on your host. Commands, compose yaml file, anything that is related to the issue.

You can also search for “localhost” or “docker localhost” on the forum, because there are a lot of questions about accessing “localhost” from a container if this is the case.