-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
145 lines (136 loc) · 3.81 KB
/
docker-compose.yaml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: '3'
services:
mysql:
image: mysql:5.7.18
container_name: mysql5.7
restart: always
volumes:
- ./mysql5.7/mydir:/mydir
- ./mysql5.7/data:/var/lib/mysql
- ./mysql5.7/conf/my.cnf:/etc/my.cnf
- ./mysql5.7/source:/docker-entrypoint-initdb.d/
environment:
- MYSQL_ROOT_PASSWORD=root
- TZ=Asia/Shanghai
ports:
- 3306:3306
redis:
image: redis:6.2
container_name: redis6.2
restart: always
volumes:
- ./redis/data:/data
- ./redis/conf/redis.conf:/usr/local/etc/redis/redis.conf
- ./redis/logs:/logs
command: redis-server --requirepass bgi123456!@#
ports:
- 6379:6379
nacos:
image: nacos/nacos-server:2.0.3
container_name: nacos2.0.3
restart: always
depends_on:
- mysql
ports:
- 8848:8848
- 9848:9848
- 9849:9849
environment:
- JVM_XMS=128m
- JVM_XMX=128m
- MODE=standalone
- PREFER_HOST_MODE=hostname
- SPRING_DATASOURCE_PLATFORM=mysql
- NACOS_AUTH_ENABLE=true
- MYSQL_SERVICE_HOST=192.168.8.1
- MYSQL_SERVICE_DB_NAME=config
- MYSQL_SERVICE_USER=root
- MYSQL_SERVICE_PASSWORD=root
- MYSQL_SERVICE_PORT=3306
- MYSQL_SERVICE_DB_PARAM=characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&failOverReadOnly=false
volumes:
- ./nacos/logs:/home/nacos/logs
minio:
image: quay.io/minio/minio
container_name: minio
restart: always
command: server /data --console-address ':9001'
ports:
- 4000:9000
- 4001:9001
volumes:
- ./minio/data:/data
- ./minio/config:/root/.minio/
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio123
seata:
image: seataio/seata-server:1.4.0
container_name: seata1.4.0
restart: always
depends_on:
- nacos
- mysql
ports:
- 18091:8091
environment:
- SEATA_IP=192.168.8.1
- SEATA_CONFIG_NAME=file:/root/seata-config/registry
volumes:
- ./seata1.4.0:/root/seata-config
rocketmq-namesrv:
image: foxiswho/rocketmq:4.8.0
container_name: rocketmq-namesrv
restart: always
ports:
- 9876:9876
volumes:
- ./rocketmq/namesrv/logs:/home/rocketmq/rocketmq-4.8.0/logs
- ./rocketmq/namesrv/store:/home/rocketmq/rocketmq-4.8.0/store
environment:
JAVA_OPTS: "-Duser.home=/opt"
JAVA_OPT_EXT: "-server -Xms256M -Xmx256M -Xmn128m"
command: ["sh","mqnamesrv"]
networks:
rocketmq:
aliases:
- rocketmq-namesrv
rocketmq-broker:
image: foxiswho/rocketmq:4.8.0
container_name: rocketmq-broker
restart: always
ports:
- 10909:10909
- 10911:10911
volumes:
- ./rocketmq/broker/logs:/home/rocketmq/rocketmq-4.8.0/logs
- ./rocketmq/broker/store:/home/rocketmq/rocketmq-4.8.0/store
- ./rocketmq/broker/conf/broker.conf:/home/rocketmq/rocketmq-4.8.0/conf/broker.conf
environment:
JAVA_OPTS: "-Duser.home=/opt"
JAVA_OPT_EXT: "-server -Xms256m -Xmx256m -Xmn128m"
command: ["sh","mqbroker","-c","/home/rocketmq/rocketmq-4.8.0/conf/broker.conf","-n","rocketmq-namesrv:9876","autoCreateTopicEnable=true"]
depends_on:
- rocketmq-namesrv
networks:
rocketmq:
aliases:
- rocketmq-broker
rocketmq-console:
image: styletang/rocketmq-console-ng
container_name: mgi-rocketmq-console
restart: always
ports:
- 8180:8080
environment:
JAVA_OPTS: "-Drocketmq.namesrv.addr=rocketmq-namesrv:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false"
depends_on:
- rocketmq-namesrv
networks:
rocketmq:
aliases:
- rocketmq-console
networks:
rocketmq:
name: rocketmq
driver: bridge