at first, I really tried a lot and read a lot and I’m starting feeling dump. Probably it is easy to get it working, but I didn’t so far and I hope you may can help me…
System: Arch Linux
I want to play around with RabbitMQ. It is working locally (=without docker), it is working when using
--net=host for every container, but it is not working as soon as I try to convert this into a docker-compose file.
I have three services: the RabbitMQ server, one send-client (producer) and a receiving client (consumer). The Clients seem to connect to the Server, because you can see the connection in the logs (like “accepting AMQP connection” and “user ‘guest’ authenticated and granted access to vhost ‘/’”). But still the information didn’t get there, that is to say the sender breaks, the receiver never gets any message.
My docker-compose.yml look like this:
version: "3" services: rabbit-server: image: rabbitmq network_mode: host rabbit-recv: build: rabbit-recv network_mode: host depends_on: - rabbit-server rabbit-send: build: rabbit-send network_mode: host depends_on: - rabbit-recv
The clients look like described in the RabbitMQ-Tutorial.
Do you have any idea, what’s going on here? It feels like there is a big elephant I don’t see…