I've been searching for hours as to how to connected to an external docker container running RabbitMQ.
I'm trying to run a few services using Nameko which requires RabbitMQ. I've started my RabbitMQ container using the following command:
docker run -d -p 15672:15672 -p 5672:5672 --hostname my-rabbit --name rabbit-container rabbitmq:3-management
I've created a yaml config file called config.yaml with this inside:
AMQP_URI: 'pyamqp://guest:guest@my-rabbit:5672'
I start my rabbit container and my Nameko container and run the following command in the Nameko container's CLI:
nameko shell --config config.yaml
I get a the following error:
OSError: failed to resolve broker hostname
Docker, RabbitMQ, and Nameko are all new technologies to me, so I'm not sure what I'm doing wrong. Please let me know if you see anything that sticks out.
I start my rabbit with docker-compose:
and config.yaml: