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