2024-05-14 14:18:10 +08:00
|
|
|
services:
|
|
|
|
namesrv:
|
2024-07-29 16:40:20 +08:00
|
|
|
image: apache/rocketmq:5.3.0
|
2024-05-14 14:18:10 +08:00
|
|
|
container_name: ${CONTAINER_NAME}-rmqnamesrv
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_NAMESERVER}:9876
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
volumes:
|
|
|
|
- ./data/namesrv/logs:/home/rocketmq/logs
|
|
|
|
command: sh mqnamesrv
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
broker:
|
2024-07-29 16:40:20 +08:00
|
|
|
image: apache/rocketmq:5.3.0
|
2024-05-14 14:18:10 +08:00
|
|
|
container_name: ${CONTAINER_NAME}-rmqbroker
|
|
|
|
links:
|
|
|
|
- namesrv
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_FASTLISTEN}:10909
|
|
|
|
- ${PANEL_APP_PORT_LISTEN}:10911
|
|
|
|
- ${PANEL_APP_PORT_HALISTEN}:10912
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
environment:
|
|
|
|
- NAMESRV_ADDR=namesrv:9876
|
|
|
|
volumes:
|
|
|
|
- ./data/broker/logs:/home/rocketmq/logs
|
|
|
|
- ./data/broker/store:/home/rocketmq/store
|
|
|
|
- ./data/broker/conf/broker.conf:/opt/rocketmq-5.2.0/conf/broker.conf
|
|
|
|
command: sh mqbroker -c /opt/rocketmq-5.2.0/conf/broker.conf
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
proxy:
|
2024-07-29 16:40:20 +08:00
|
|
|
image: apache/rocketmq:5.3.0
|
2024-05-14 14:18:10 +08:00
|
|
|
container_name: ${CONTAINER_NAME}-rmqproxy
|
|
|
|
links:
|
|
|
|
- namesrv
|
|
|
|
- broker
|
|
|
|
depends_on:
|
|
|
|
- broker
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_REMOTINGLISTEN}:8080
|
|
|
|
- ${PANEL_APP_PORT_GRPCSERVER}:8081
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
- NAMESRV_ADDR=namesrv:9876
|
|
|
|
volumes:
|
|
|
|
- ./data/proxy/logs:/home/rocketmq/logs
|
|
|
|
- ./data/proxy/conf/rmq-proxy.json:/opt/rocketmq-5.2.0/conf/rmq-proxy.json
|
|
|
|
command: sh mqproxy -pc /opt/rocketmq-5.2.0/conf/rmq-proxy.json
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
dashboard:
|
|
|
|
image: apacherocketmq/rocketmq-dashboard:latest
|
|
|
|
container_name: ${CONTAINER_NAME}-rmqdashboard
|
|
|
|
links:
|
|
|
|
- namesrv
|
|
|
|
depends_on:
|
|
|
|
- namesrv
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:8080
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
- JAVA_OPTS=-Drocketmq.namesrv.addr=namesrv:9876
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|