-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathdocker-compose.yml
112 lines (102 loc) · 3.32 KB
/
docker-compose.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3.8'
services:
mysql:
image: mysql:8.0
ports:
- "3306:3306"
volumes:
- /docker/mysql/data:/var/lib/mysql
environment: #指定root密码
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: 123456
redis:
image: redis:latest
container_name: redis
restart: always
environment: #指定root密码
TZ: Asia/Shanghai
ports:
- "6379:6379"
volumes:
- /docker/redis/data:/data
- /docker/redis/redis.conf:/etc/redis/redis.conf
command: [ "redis-server","/etc/redis/redis.conf" ]
rocketmq-namesrv:
image: foxiswho/rocketmq:4.8.0
container_name: rocketmq-namesrv
restart: always
ports:
- 9876:9876
volumes:
- /docker/rocketmq/namesrv/logs:/home/rocketmq/logs
- /docker/rocketmq/namesrv/store:/home/rocketmq/store
environment:
TZ: Asia/Shanghai
JAVA_OPT_EXT: "-Duser.home=/home/rocketmq -Xms128M -Xmx128M -Xmn128m"
command: [ "sh","mqnamesrv" ]
networks:
rocketmq_net:
aliases:
- rocketmq-namesrv
rocketmq-broker:
image: apache/rocketmq:5.3.1
container_name: rocketmq-broker
restart: always
ports:
- 10909:10909
- 10911:10911
volumes:
- /docker/rocketmq/broker/logs:/home/rocketmq/logs
- /docker/rocketmq/broker/store:/home/rocketmq/store
- ./docker/plain_acl.yml:/home/rocketmq/rocketmq-5.3.1/conf/plain_acl.yml
- ./docker/broker.conf:/etc/rocketmq/broker.conf
environment:
TZ: Asia/Shanghai
JAVA_OPT_EXT: "-Duser.home=/home/rocketmq -Xms128m -Xmx128m -Xmn128m"
command: ["sh","mqbroker","-c","/etc/rocketmq/broker.conf"]
user: root
depends_on:
- rocketmq-namesrv
networks:
rocketmq_net:
aliases:
- rocketmq-broker
rocketmq-console:
image: iamverygood/rocketmq-console:4.7.1
container_name: rocketmq-console
restart: always
ports:
- 8180:8080
volumes:
- /docker/rocketmq/console/data:/tmp/rocketmq-console/data
environment:
TZ: Asia/Shanghai
JAVA_OPTS: "-Drocketmq.namesrv.addr=rocketmq-namesrv:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false -Drocketmq.config.loginRequired=true -Drocketmq.config.aclEnabled=true -Drocketmq.config.accessKey=hula-server -Drocketmq.config.secretKey=k2439646234"
depends_on:
- rocketmq-namesrv
networks:
rocketmq_net:
aliases:
- rocketmq-console
minio:
image: "minio/minio:latest"
container_name: minio
ports:
- "9000:9000" # api 端口
- "9001:9001" # 控制台端口
environment:
TZ: Asia/Shanghai
MINIO_ROOT_USER: admin # 管理后台用户名
MINIO_ROOT_PASSWORD: 12345678 # 管理后台密码,最小8个字符
MINIO_COMPRESS: "off" # 开启压缩 on 开启 off 关闭
MINIO_COMPRESS_EXTENSIONS: "" # 扩展名 .pdf,.doc 为空 所有类型均压缩
MINIO_COMPRESS_MIME_TYPES: "" # mime 类型 application/pdf 为空 所有类型均压缩
volumes:
- /docker/minio/data:/data/ # 映射当前目录下的data目录至容器内/data目录
- /docker/minio/config:/root/.minio/ # 映射配置目录
command: server --address ':9000' --console-address ':9001' /data # 指定容器中的目录 /data
privileged: true
networks:
rocketmq_net:
name: rocketmq_net
driver: bridge