forked from ThoreauZZ/spring-cloud-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
185 lines (174 loc) · 3.73 KB
/
docker-compose.yml
File metadata and controls
185 lines (174 loc) · 3.73 KB
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
version: '2.1'
services:
mysql:
image: mysql:5.6.35
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 1234
rabbitmq:
image: rabbitmq:management
expose:
- 5672
- 15672
ports:
- "5672:5672"
- "15672:15672"
eureka:
image: erdaoya/cloud-server-discovery
ports:
- "9001:9001"
environment:
SERVICE_HOST: discovery
SERVICE_PORT: 9001
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9001/health"]
interval: 1m30s
timeout: 10s
retries: 3
config:
image: erdaoya/cloud-server-config
ports:
- "9000:9000"
links:
- eureka:discovery
- rabbitmq:rabbitmq
environment:
SERVICE_PORT: 9000
REGISTRY_URL: http://discovery:9001/eureka
depends_on:
eureka:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/health"]
interval: 1m30s
timeout: 10s
retries: 3
zipkin:
image: erdaoya/cloud-zipkin-ui
restart: always
ports:
- "9012:9012"
links:
- eureka:discovery
- rabbitmq:rabbitmq
environment:
SERVICE_PORT: 9012
REGISTRY_URL: http://discovery:9001/eureka
depends_on:
eureka:
condition: service_healthy
user:
image: erdaoya/cloud-service-user
ports:
- "9002:9002"
links:
- config:config
- eureka:discovery
- mysql:mysql
- zipkin:zipkin
- rabbitmq:rabbitmq
environment:
SERVICE_PORT: 9002
REGISTRY_URL: http://discovery:9001/eureka
depends_on:
eureka:
condition: service_healthy
config:
condition: service_healthy
trade:
image: erdaoya/cloud-service-trade
ports:
- "9007:9007"
links:
- config:config
- eureka:discovery
- mysql:mysql
- zipkin:zipkin
- rabbitmq:rabbitmq
environment:
SERVICE_PORT: 9007
REGISTRY_URL: http://discovery:9001/eureka
depends_on:
eureka:
condition: service_healthy
config:
condition: service_healthy
ext:
image: erdaoya/cloud-service-client
ports:
- "9005:9005"
links:
- config:config
- eureka:discovery
- user:user
- trade:trade
- zipkin:zipkin
- rabbitmq:rabbitmq
environment:
SERVICE_PORT: 9005
REGISTRY_URL: http://discovery:9001/eureka
depends_on:
- eureka
- config
gateway:
image: erdaoya/cloud-api-gateway
ports:
- "9006:9006"
links:
- config:config
- eureka:discovery
- mysql:mysql
- user:user
- trade:trade
- ext:ext
- zipkin:zipkin
- rabbitmq:rabbitmq
environment:
SERVICE_PORT: 9006
REGISTRY_URL: http://discovery:9001/eureka
depends_on:
- eureka
- config
turbine:
image: erdaoya/cloud-turbine-dashboard
ports:
- "9010:9010"
links:
- ext:ext
- user:user
- trade:trade
- eureka:discovery
environment:
SERVICE_PORT: 9010
REGISTRY_URL: http://discovery:9001/eureka
depends_on:
- eureka
- config
admin:
image: erdaoya/cloud-admin-ui
ports:
- "9003:9003"
links:
- turbine:turbine
- eureka:discovery
environment:
SERVICE_PORT: 9003
REGISTRY_URL: http://discovery:9001/eureka
TURBINE_URL: http://discovery:9010/turbine.stream
depends_on:
- eureka
comx:
image: erdaoya/cloud-service-comx
ports:
- "9019:9019"
links:
- eureka:discovery
environment:
SERVICE_PORT: 9019
REGISTRY_URL: http://discovery:9001/eureka
# volumes:
# - "/www:/www"
depends_on:
- eureka
- config