vsouza / docker-SQS-local

Docker image to run Amazon Simple Queue Service (Amazon SQS) locally.
MIT License
226 stars 32 forks source link

List queues / management interface #9

Closed calebickler closed 6 years ago

calebickler commented 6 years ago

Hello,

I am looking at using docker-SQS-local for local development, I was originally going to use RabbitMQ but if I can run SQS local then I don't need to maintain two queue interfaces :)

One thing that I would want when doing local development is some way to list my queues and see the queued messages and consume rates. This way we can see if a queue is getting written to but not consumed.

I tried looking for something in the elasticmq repo but I couldn't find anything. I know there is no UI but is there a command I could docker exec to list the queues.

Thanks for this project and your help!

vsouza commented 6 years ago

@calebickler try this project, maybe can help you.

https://github.com/aaronshaf/sqs-admin

calebickler commented 6 years ago

This worked great.

Here is a docker image I found for it: https://github.com/wheniwork/sqs-admin and here is what my docker-compose looks like now:

  sqslocal:
    image: vsouza/sqs-local
    ports:
      - "9324:9324"
  sqsadmin:
    image: wheniwork/sqs-admin
    environment:
      - SQS_ENDPOINT=http://docker.for.win.localhost:9324
    ports:
      - "9325:8002"

I now have a local sqs and a management UI.

Thanks!!

elliotlings commented 6 years ago

@calebickler do you have any ideas why sqsadmin is returning the following?

Error: connect ECONNREFUSED 172.18.0.2:80
    at Object.exports._errnoException (util.js:1020:11)
    at exports._exceptionWithHostPort (util.js:1043:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
calebickler commented 5 years ago

Hi @elliotlings If you are having issues with sqs admin I would make a ticket in the sqs admin repo.

My guess is the SQS_ENDPOINT you have configured is not correct.

gnuson commented 4 years ago

I had the same issue. The problem was that I was using "- SQS_ENDPOINT=http://localhost:9324" instead of "- SQS_ENDPOINT=http://docker.for.win.localhost:9324"