CyJaySong commented on issue #88:
URL: https://github.com/apache/rocketmq-docker/issues/88#issuecomment-1684712296
```
version: "3"
services:
#Service for nameserver
namesrv:
container_name: RocketMQ-namesrv
image: apache/rocketmq:5.1.3
command: sh mqnamesrv
labels:
createdBy: Apps
restart: always
ports:
- 9876:9876
volumes:
- ./namesrv/logs:/home/rocketmq/logs
#Service for broker
broker:
container_name: RocketMQ-broker
links:
- namesrv
image: apache/rocketmq:5.1.3
command: sh mqbroker --enable-proxy -c /opt/rocketmq/conf/broker.conf
labels:
createdBy: Apps
restart: always
ports:
- 8080:8080
- 10909:10909
- 10911:10911
- 10912:10912
environment:
- NAMESRV_ADDR=namesrv:9876
volumes:
- ./broker/logs:/home/rocketmq/logs
- ./broker/store:/home/rocketmq/store
- ./broker/conf:/opt/rocketmq/conf
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]