RabbitMQ in Docker throws exception when I try to connect from java with custom port
I run RabbitMQ in docker using this command: docker run --rm -it --hostname my-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management It works and I can connect to RabitMq from java: ConnectionFactory factory = new ConnectionFactory(); factory.setUsername("guest"); factory.setPassword("guest"); Connection connection = factory.newConnection("http://localhost:5672");…