标签:dir 启动 use ima rabbit default 安装 restart vol
cd /usr/local/docker/
mkdir rabbitmq
cd rabbitmq
mkdir data
version: ‘3.1‘
services:
rabbitmq:
restart: always
image: rabbitmq:management
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
environment:
TZ: Asia/Shanghai
RABBITMQ_DEFAULT_USER: rabbit
RABBITMQ_DEFAULT_PASS: 123456
volumes:
- ./data:/var/lib/rabbitmq
docker-compose up -d
标签:dir 启动 use ima rabbit default 安装 restart vol
原文地址:https://www.cnblogs.com/lovling/p/12651309.html