Problem while enabling RabbitMQ

Hi,
I am trying to run RabbitMQ, but I seem to be missing something.
I’ve…

  1. Pulled the docker image with: docker pull rabbitmq:3.6
  2. Copied the sample config from the documentation
  3. Set the .env config to use the 3.6 image

When I try to run it with:
docker-compose up mysql redis httpd php bind rabbit
I get the error:
ERROR: No such service: rabbit

What am I missing? Please note I am using docker for the first time so I am not sure if something obvious needs to be done :slight_smile:

Ah. I made a mistake - I copy/pasted the docker-compose.override.yml-rabbitmq file without renaming it.
So all that was needed was to copy the yml file and remove the rabbitmq suffix. Should have used the terminal command that was provided in the documentation :slight_smile:

Hi @SlimDeluxe
I need also a help to work with RabbitMQ-Magento. But my problem is that when I try to connect to my server in docker, I get this error from my application Magento.

"message": "stream_socket_client(): unable to connect to tcp://my_vhost:5672 (php_network_getaddresses: getaddrinfo failed: Name or service not known)",

1 Like

Have you found the solution yet?

@cindyforcia yes it works for me, It was related to my Firewall enabled in linux.
Used configuration in magento was

'queue' => [
        'consumers_wait_for_messages' => 1,
        'amqp' => [
            'host' => 'rabbitmq',
            'port' => '5672',
            'user' => 'magento',
            'password' => 'magento',
            'virtualhost' => '/'
        ]
    ],

you should be sure that you have virtualhost “/” in rabbitmq