Docker connection to local db


I am trying to run a wordpress site in a docker container. I've pulled the wordpress image. But my requirement is to connect it with a database in my localhost.(outside docker). Im not sure how to do it. Could anyone please help me to get the wordpress connect with the mysql db in my local pc? Any help is really appreciated. Thanks in advance 🙂

submitted by /u/itsmedeepz
[link] [comments]
Source: Reddit