Description
What do I want to achieve?
Make rabbitmq listen for amqp connections on a port other than default 5672
My constraints
I do not want to use a config file, I want to achieve this via environment variables
What did I try?
Same results when I try:
-
In my development environment, I use
docker-compose
withrabbitmq:alpine
image (13b87dec7346643343e297673c9ac6b80b68ddb8af70b3b34a55a8a4209ca2d2
) -
single docker container, with alpine image:
docker run -it --rm -e RABBITMQ_NODE_PORT=8989 rabbitmq:alpine
-
single docker container, with
rabbitmq
image (f83a0c22b15ab5f71a8fe2c2ff5366a78e967bf27298df181f161de04e4d8c9a
)
docker run -it --rm -e RABBITMQ_NODE_PORT=8989 rabbitmq
Which versions did I use?
I tried it on two different machines.
Docker version 20.10.5, build 55c4c88
on Linux ubuntu 5.8.0-45-generic #51~20.04.1-Ubuntu SMP Tue Feb 23 13:46:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
and
Docker version 20.10.6, build 370c28948e
on Linux 5.11.15-arch1-2 #1 SMP PREEMPT Sat, 17 Apr 2021 00:22:30 +0000 x86_64 GNU/Linux
What did I want to see?
Rabbitmq to use my port
...
2021-04-18 14:14:24.828 [info] <0.875.0> started TCP listener on [::]:8989
...
What do I see?
...
2021-04-18 14:14:24.828 [info] <0.875.0> started TCP listener on [::]:5672
...