From a3e83ff7cb5e328a38fe48e64081766add9d876c Mon Sep 17 00:00:00 2001 From: paulGao Date: Tue, 11 Oct 2022 18:16:05 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96docker-compose?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC=EF=BC=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=85=B3=E9=97=ADrocketmq=E6=9C=AC=E5=9C=B0=E6=8C=82=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9921db3..fe80916 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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