This is a demo to use RabbitMQ container. The Receive and Send are written by .Net Core. The host of docker is Ubuntu
cd RabbitMQ
chmod +x CreateRabbitMQ.sh
CreateRabbitMQ.sh
Or create it directly from docker run
docker run -d --hostname demo-rabbit --name demo-rabbit -p 5672:5672 -p 15672:15672 rabbitmq:3.7.4-management
docker inspect demo-rabbit
vim ~/.bashrc
Append RABBITMQ_HOST='172.17.0.2' to .bashrc file and then make it effective
source ~/.bashrc
cd Receive
chmod +x build.sh
build.sh
docker run -it --rm -e RABBITMQ_HOST='172.17.0.2' demo/receive
cd Send
chmod +x build.sh
build.sh
docker run -it --rm -e RABBITMQ_HOST='172.17.0.2' demo/send