I\'m using Docker to create a container to test my web app built on PHP and MySQL on my Mac. My PHP app is built using Fat-Free Framework for MVC and routing. I have two D
You can use this command
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
Containers will connect with each other by their ip For example: My ip list is:
/nginx - 172.23.0.4
/php - 172.23.0.3
/mysql - 172.23.0.2
Put this ip-address into your config file instead of 127.0.0.1. Hope that it will help you!