I'm trying to run the pub/sub emulator in a docker container But I can't reach it with my application in another docker
I've tried to set my env as
ENV PUBSUB_EMULATOR_HOST="localhost:8085"
or
ENV PUBSUB_EMULATOR_HOST="pubsub:8085"
with pubsub the name of the container running the emulator
Both of the containers are in the same network
I can ping the container running the emulator from the other one but when I try to create a topic I get the following error:
503 failed to connect to all addresses
The script to create the topic were working when I ran the emulator locally
Of course, I'm running the pubsub container with -p 8085:8085
Anyone would have an idea of the problem ?