docker-compose.yml
rocketMQ 单机部署: docker-compose.yml version: "3.0" services: rocketmqNameServer: image: rocketmqinc/rocketmq container_name: rocketmqNameServer #restart: always volumes: #挂载路径,冒号左边为服务器本地路径,冒号右边为容器内部路径 - ./nameServer/logs:/root/logs - ./nameServer/store:/root/store environment: MAX_POSSIBLE_HEAP: 100000000 command: # 服务启动 sh mqnamesrv #network_mode: host ports: - "9876:9876" rocketmqBroker: image: rocketmqinc/rocketmq container_name: rocketmqBroker #restart: always volumes: #挂载路径,冒号左边为服务器本地路径,冒号右边为....