docker-compose.yml
version: '3.8'
services:
rabbitmq:
image: rabbitmq:management
restart: unless-stopped
ports:
- 5672:5672
- 15672:15672
environment:
TZ: Asia/Shanghai
RABBITMQ_DEFAULT_USER: rabbit
RABBITMQ_DEFAULT_PASS: 123456
volumes:
- ./data:/var/lib/rabbitmq