-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
132 lines (130 loc) · 3.39 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: "3.7"
services:
micro-sys:
entrypoint: ./wait-for-it.sh tx_manager:7970 'java -jar scaffold-business-sys-service-1.0-SNAPSHOT.jar'
image: scaffold-cloud/scaffold-business-sys-service:1.0-SNAPSHOT
volumes:
- /tmp:/tmp
- ./.scripts/wait-for-it.sh:/wait-for-it.sh
ports:
- 8750:8750
networks:
- scaffold-cloud
depends_on:
- redis
- eureka
- mysql
- rmqbroker
- rmqnamesrv
- tx_manager
route-operate:
entrypoint: ./wait-for-it.sh micro-sys:8750 'java -jar scaffold-route-operate-1.0-SNAPSHOT.jar'
image: scaffold-cloud/scaffold-route-operate:1.0-SNAPSHOT
volumes:
- /tmp:/tmp
- ./.scripts/wait-for-it.sh:/wait-for-it.sh
ports:
- 8850:8850
networks:
- scaffold-cloud
depends_on:
- micro-sys
eureka:
entrypoint: java -jar scaffold-eureka-1.0-SNAPSHOT.jar
image: scaffold-cloud/scaffold-eureka:1.0-SNAPSHOT
volumes:
- /tmp:/tmp
ports:
- 8761:8761
networks:
- scaffold-cloud
zuul:
entrypoint: ./wait-for-it.sh eureka:8761 'java -jar scaffold-zuul-1.0-SNAPSHOT.jar'
image: scaffold-cloud/scaffold-zuul:1.0-SNAPSHOT
volumes:
- /tmp:/tmp
- ./.scripts/wait-for-it.sh:/wait-for-it.sh
ports:
- 8861:8861
networks:
- scaffold-cloud
depends_on:
- eureka
tx_manager:
entrypoint: ./wait-for-it.sh mysql:3306,redis:6379 'java -jar scaffold-txmanager-1.0-SNAPSHOT.jar'
image: scaffold-cloud/scaffold-txmanager:1.0-SNAPSHOT
volumes:
- /tmp:/tmp
- ./.scripts/wait-for-it.sh:/wait-for-it.sh
ports:
- 8890:8890
- 7970:7970
networks:
- scaffold-cloud
depends_on:
- mysql
- redis
- eureka
mysql:
image: mysql/mysql-server:5.7
ports:
- 3306:3306
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/config/my.cnf:/etc/my.cnf
- ./mysql/init:/docker-entrypoint-initdb.d/
restart: always
networks:
- scaffold-cloud
redis:
image: redis:latest
restart: always
ports:
- 6379:6379
command: redis-server --requirepass pwd8ok8
networks:
- scaffold-cloud
rmqnamesrv:
image: foxiswho/rocketmq:server-4.5.2
container_name: rmqnamesrv
ports:
- 9876:9876
volumes:
- ./rmq/logs:/opt/logs
- ./rmq/store:/opt/store
environment:
JAVA_OPT_EXT: "-Duser.home=/opt -Xms128m -Xmx128m -Xmn128m"
networks:
- scaffold-cloud
rmqbroker:
image: foxiswho/rocketmq:broker-4.5.2
container_name: rmqbroker
ports:
- 10909:10909
- 10911:10911
volumes:
- ./rmq/logs:/opt/logs
- ./rmq/store:/opt/store
- ./rmq/brokerconf/broker.conf:/etc/rocketmq/broker.conf
environment:
JAVA_OPT_EXT: "-Duser.home=/opt -server -Xms128m -Xmx128m -Xmn128m"
command: ["/bin/bash","mqbroker","-c","/etc/rocketmq/broker.conf","-n","rmqnamesrv:9876","autoCreateTopicEnable=true"]
depends_on:
- rmqnamesrv
networks:
- scaffold-cloud
rmqconsole:
image: styletang/rocketmq-console-ng
container_name: rmqconsole
ports:
- 8180:8080
environment:
JAVA_OPTS: "-Drocketmq.namesrv.addr=rmqnamesrv:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false"
depends_on:
- rmqnamesrv
networks:
- scaffold-cloud
networks:
scaffold-cloud:
name: scaffold-cloud
driver: bridge