Hello, I have a doubt about the docker and docker compose. I understand the basics of docker, and the philosophy of docker compose, I try different things and general work fine.
I make some proves with and nginx and php, mysql and more and seems all its okey, but when i want to access to a mysql inside a continer i can't get the exact IP adress from the hsot and conect for example with SequelPro.
The last test I try is with docker-symfony, if anyone can help me to access the mysql from my host I appreciate!
CTO/CEO @Pagelanes.com
Marcus Pohorely
CTO/CEO @Pagelanes.com
You don't need an IP Adress... The Mysql Container is reachable from Sequel via 127.0.0.1 and the port you give it within your docker-compose.
And if you need to access the mysql container from any other container you can just use the name as host. Docker knows where your containers are and which IPs they have.
If you want to go further, have look at creating custom networks.