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