docker-compose 部署rabbitmq
时间: 2023-08-23 16:05:25 浏览: 279
根据提供的引用内容,使用docker-compose部署RabbitMQ的步骤如下:
1. 首先,编辑`docker-compose.yaml`文件,指定RabbitMQ的配置信息和挂载目录。例如,设置RabbitMQ版本为`3.10.2-management`,容器名称为`rabbitmq`,并挂载`./data`目录到容器的`/var/lib/rabbitmq`目录,挂载`./log`目录到容器的`/var/log/rabbitmq`目录,挂载`./localtime`目录到容器的`/etc/localtime`目录。同时,将主机的5672端口映射到容器的5672端口,将主机的15672端口映射到容器的15672端口,设置时区为`Asia/Shanghai`,默认用户名为`rabbit`,默认密码为`123456`。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [docker-compose 部署RabbitMq](https://blog.csdn.net/a1394916730/article/details/126058114)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [docker-compose部署rabbitmq集群](https://blog.csdn.net/p393975269/article/details/129830252)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [手把手教你使用docker-compose搭建RabbitMQ集群](https://blog.csdn.net/qq_41865652/article/details/123339368)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文