kingdom998 commented on issue #357:
URL: 
https://github.com/apache/rocketmq-clients/issues/357#issuecomment-2652842001

   不能使用 9876 如果 使用 docker-compose 启动的时候,设置的对外的代理窗口要为 8081
   样例如下:
   `
   version: '3.8'
   services:
     namesrv:
       image: apache/rocketmq:5.1.0
       container_name: rmqnamesrv
       ports:
         - 9876:9876
       networks:
         - rocketmq
       command: sh mqnamesrv
     broker:
       image: apache/rocketmq:5.1.0
       container_name: rmqbroker
       ports:
         - 10909:10909
         - 10911:10911
         - 10912:10912
       environment:
         - NAMESRV_ADDR=rmqnamesrv:9876
       depends_on:
         - namesrv
       networks:
         - rocketmq
       command: sh mqbroker
     proxy:
       image: apache/rocketmq:5.1.0
       container_name: rmqproxy
       networks:
         - rocketmq
       depends_on:
         - broker
         - namesrv
       ports:
         - 18080:8080
         - 8081:8081
       restart: on-failure
       environment:
         - NAMESRV_ADDR=rmqnamesrv:9876
       command: sh mqproxy
     dashboard:
       image: apacherocketmq/rocketmq-dashboard:latest
       container_name: rocketmq-dashboard
       ports:
         - 8888:8080
       environment:
         - JAVA_OPTS=-Drocketmq.namesrv.addr=rmqnamesrv:9876
       depends_on:
         - namesrv
       networks:
         - rocketmq
   networks:
     rocketmq:
       driver: bridge
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to