출처: https://www.cloudamqp.com/img/blog/exchanges-topic-fanout-direct.png
$ docker run -d --hostname localhost --name my-rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management
docker compose
rabbitmq:
image: rabbitmq:management
ports:
- "5672:5672"
- "15672:15672"
networks:
- backend-network
2개의 포트 바인딩을 하는데 5672는 AMQP 포트 / 15672는 웹관리 콘솔포트
- default 로그인 접속정보 : guest / guest
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-amqp'
testImplementation 'org.springframework.amqp:spring-rabbit-test'
}
출처
#1