docker-compose简易搭建rabbitmq
version: '2'
services:
rabbit1:
image: byh-registry:5000/rabbitmq:v1
container_name: rabbitmq
ports:
- "4369:4369"
- "5671:5671"
- "5672:5672"
- "15671:15671"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=123456
restart: always
network_mode: "host"