-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-rocketmq.yml
57 lines (57 loc) · 1.4 KB
/
docker-compose-rocketmq.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
namesrv:
image: martindai/rocketmq:5.1.0
container_name: rmq-namesrv
command: sh mqnamesrv
ports:
- "9876:9876"
volumes:
- ./rocketmq/namesrv/logs:/home/rocketmq/logs
networks:
- net-rocketmq
broker:
image: martindai/rocketmq:5.1.0
container_name: rmq-broker
environment:
NAMESRV_ADDR: "namesrv:9876"
JAVA_OPTS: "-Duser.home=/opt"
JAVA_OPT_EXT: "-server -Xms256m -Xmx512m"
command: sh mqbroker -c /home/rocketmq/rocketmq-5.1.0/conf/broker.conf
ports:
- "10909:10909"
- "10911:10911"
volumes:
- ./rocketmq/broker/logs:/home/rocketmq/logs
- ./rocketmq/broker/store:/home/rocketmq/store
- ./rocketmq/broker/conf/broker.conf:/home/rocketmq/rocketmq-5.1.0/conf/broker.conf
networks:
- net-rocketmq
depends_on:
- namesrv
exporter:
image: martindai/rocketmq-exporter:0.0.2
container_name: rmq-exporter
ports:
- "5557:5557"
environment:
- rocketmq.config.namesrvAddr=namesrv:9876
networks:
- net-rocketmq
depends_on:
- namesrv
- broker
dashboard:
image: martindai/rocketmq-dashboard:1.0.0
container_name: rmq-dashboard
ports:
- "28080:8080"
environment:
- NAMESRV_ADDR=namesrv:9876
networks:
- net-rocketmq
depends_on:
- namesrv
- broker
networks:
net-rocketmq:
driver: bridge