Closed brettlangdon closed 6 years ago
I figured it out, this was an issue with elasticmq
s configuration.
By default it will return queue urls with the hostname localhost
. It needed to be configured to return my expected docker container hostname.
I am running https://github.com/localstack/localstack so this meant setting the HOSTNAME
and HOSTNAME_EXTERNAL
environment variables to the name of my localstack
docker-compose
service.
@brettlangdon thanks for sharing the solution, it might help others.
I am trying to use https://github.com/adamw/elasticmq in development with
celery
but I am receiving an error fromkombu
.I am running
elasticmq
andcelery
in separate containers viadocker-compose
and trying to override theendpoint_url
viaBROKER_URL=sqs://key:secret@sqs:9324
.I am not sure where the
localhost
is coming from as everything else appears to be correct.I tried using
pdb
to ensure the transport/connection has the correctendpoint_url
, which is does. Not sure where/how else to debug this issue.I have also tested the link between the two containers via
curl
and everything is working as expected there.Any insights would be greatly appreciated :)