perf: 优化docker-compose启动脚本,默认关闭rocketmq本地挂载

master
paulGao 2022-10-11 18:16:05 +08:00
parent ac8c8cc362
commit a3e83ff7cb
1 changed files with 6 additions and 4 deletions

View File

@ -86,8 +86,9 @@ services:
container_name: rocket-server
# environment:
# JAVA_OPT_EXT: "-server -Xms64m -Xmx64m -Xmn64m"
volumes:
- ../volumes/data/rocket/server/logs:/home/rocketmq/logs
# volumes:
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功
# - ../volumes/data/rocket/server/logs:/home/rocketmq/logs
networks:
- rocketmq
ports:
@ -99,8 +100,9 @@ services:
restart: always
container_name: rocket-broker
volumes:
- ../volumes/data/rocket/broker/logs:/home/rocketmq/logs
- ../volumes/data/rocket/broker/store:/home/rocketmq/store
# 映射本地目录权限一定要设置为 777 权限,否则启动不成功
# - ../volumes/data/rocket/broker/logs:/home/rocketmq/logs
# - ../volumes/data/rocket/broker/store:/home/rocketmq/store
- ./config/broker.conf:/opt/rocketmq-4.9.4/conf/broker.conf
environment:
- NAMESRV_ADDR=rmqnamesrv:9876