I have a docker compose file that starts two images:
version: '3' services: ganache: image: trufflesuite/ganache-cli:latest ports: - "8545:8545" app: image: -- my custom image -- depends_on: - ganache ...
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 in advance!