使用Docker Compose部署RabbitMQ镜像
version: '3'
services:
rabbitmq:
image: rabbitmq:3.8.19-management-alpine
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq/
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
volumes:
rabbitmq_data: