host(digital ocean droplet). They both have their own docker-compose files with their own networks. In the first project I have a mysql container.Also, I have an app container in the second project that I wanna connect to the mysql container from it. These two containers have different networks and I can't create a connection between them. I tried this in my mysql docker-compose config:
ports:
- "127.0.0.1:3306:3306"
but this didn't work and returns "connection refused" error. How can I make this work?
p.s: I don't wanna map it to 0.0.0.0. I want it to be held inside my server
Обсуждают сегодня