I'm experimenting with docker and I'm looking for the best way to have my container to communicate with a MYSQL DB running on a separate VM. The MYSQL DB is on the host's network.
SO setup is:
- Docker host VM: (VM IP: 192.168.56.105 | Container eth0 172.17.0.1)
- Container running wordpress (on apache): 172.17.0.2
- MYSQL VM IP: 192.168.56.106
I'm looking for a way connect my apache container to 192.168.56.106:3306. Just an extra detail; all VMs are running ubuntu16.04, all of them hosted on my windows laptop using virtualbox