Unable to access host's localhost from container

Unless you want only specific containers to access the MySQL port, the docker bridge IP should be enough, but I wrote about a workaround here: