app contains a small script that connects to ganache-cli via port 8545 and fails to do so if I run this docker composition.
If I run ganache-cli on my machine and run my script it works without an issue. I’m aware that I cannot forward the port to localhost on mac but can I at least somehow connect the docker images with each other so that my custom image can access ganache-cli via localhost:8545 ?
Thanks for your response. Using curl from my app container I can indeed access the ganache container with ganache:8545. It also revealed to me that the full name of the container is actually: docker_ganache_1.docker_default:8545
Using that from my application in the app container did let me access the ganache container. Accessing it from the host did not work though, neither with ganache:845 nor with the full domain name. Is that even possible?
I was using docker-machine the whole time instead of docker.app, apparently that’s not the recommended way to use docker on mac any more. Purged everything reinstalled docker.app, works without issues now ^^