1 Star 0 Fork 475

weiss/docker

forked from Lilishop商城/docker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose-mq.yml 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
weiss 提交于 2021-11-03 12:53 . 'mq'
version: '3'
services:
# rocket mq name server
rmqnamesrv:
image: foxiswho/rocketmq:server-4.7.0
restart: always
container_name: rocket-server
environment:
- JAVA_OPTS:= -server -Xms1g -Xmx1g -Xmn128m
volumes:
- ../volumes/data/rocket/server/logs:/opt/logs
- ../volumes/data/rocket/server/store:/opt/rmqstore
networks:
- rocketmq
ports:
- 9876:9876
# rocket mq broker
rmqbroker:
image: foxiswho/rocketmq:broker-4.7.0
restart: always
container_name: rocket-broker
volumes:
- ../volumes/data/rocket/broker/logs:/opt/logs
- ../volumes/data/rocket/broker/store:/opt/rmqstore
- ./config/broker.conf:/etc/rocketmq/broker.conf
environment:
- NAMESRV_ADDR=rmqnamesrv:9876
- JAVA_OPTS:=-Duser.home=/opt -server -Xms1g -Xmx2g -Xmn128m
command: mqbroker -c /etc/rocketmq/broker.conf
depends_on:
- rmqnamesrv
networks:
- rocketmq
ports:
- 10909:10909
- 10911:10911
# rocket console 这个可以不需要
rmqconsole:
image: styletang/rocketmq-console-ng:latest
restart: always
container_name: rocket-console
environment:
- JAVA_OPTS=-Drocketmq.config.namesrvAddr=rmqnamesrv:9876 -Dserver.port=8180 -Drocketmq.config.isVIPChannel=false -Xms256m -Xmx512m -Xmn64m
depends_on:
- rmqnamesrv
networks:
- rocketmq
ports:
- 8180:8180
networks:
rocketmq:
driver: bridge
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/weiss/docker.git
[email protected]:weiss/docker.git
weiss
docker
docker
master

搜索帮助