CANNOT SEE QUEUE IN RABBITMQ RUNNING IN DOCKER

134 views
Skip to first unread message

Sercan Noyan Germiyanoglu

unread,
Aug 5, 2022, 6:17:06 PM8/5/22
to rabbitmq-users
Hi,

I'm trying to implement an example of Spring Cloud. I have a problem not showing queue in rabbitmq running in docker when I send a message from advertisement service to report service..

Here is the rabbitmq code defined in docker-compose.yml

rabbitmq:
    image: "rabbitmq:3-management"
    container_name: "rmq3"
    environment:
      RABBITMQ_DEFAULT_USER: "rabbitmq"
      RABBITMQ_DEFAULT_PASS: "123456"
    ports:
      - "5672:5672"
      - "15672:15672"






screenshot_1.PNG
screenshot_4.PNG
screenshot_5.PNG
screenshot_3.PNG
screenshot_2.PNG

Pankaj Kumar

unread,
Aug 6, 2022, 3:53:37 AM8/6/22
to rabbitmq-users
You have not mounted config files and if you want to persist messages you will need to mount a volume too

I have a perfectly working rabbitmq docker running on production, try below configuration , make sure you create your on rabbitmq.config and definations.json


version: '2.4'


services:

rabbitmq:

logging:

driver: json-file

options:

max-size: "2m"


volumes:

- ./rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro

- ./definitions.json:/etc/rabbitmq/definitions.json:ro

- /newvolume/rdata:/var/lib/rabbitmq

container_name: rabbitmq

hostname: rabbitmq

ports:

- 5672:5672

- 15672:15672

image: rabbitmq:3-management

networks:

- xtnet

networks:

xtnet:
external: true

Sercan Noyan Germiyanoglu

unread,
Aug 6, 2022, 5:44:29 AM8/6/22
to rabbitmq-users
As I have a problem in docker-compose, I cannot run some services properly except for keycloak,rabbitmq and lastly config server.
I already defined Rabbitmq config for both services (advertisement service and report service)

I cannot still see the queue in rabbitmq.

6 Ağustos 2022 Cumartesi tarihinde saat 10:53:37 UTC+3 itibarıyla pankaj...@forage.ai şunları yazdı:

Sercan Noyan Germiyanoglu

unread,
Aug 9, 2022, 9:53:13 AM8/9/22
to rabbitmq-users
Is it possible to help me as I couldn't fix it.

6 Ağustos 2022 Cumartesi tarihinde saat 12:44:29 UTC+3 itibarıyla Sercan Noyan Germiyanoglu şunları yazdı:
Reply all
Reply to author
Forward
0 new messages