-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
187 lines (187 loc) · 4.69 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
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
186
187
version: '2'
services:
# zipkin:
# image: openzipkin/zipkin
# container_name: zipkin
# ports:
# - "9411:9411"
# networks:
# - mall
# volumes:
# - /home/yufei/znv/logs/zipkin:/logs
zipkin:
image: znv/zipkin
container_name: zipkin
ports:
- "9411:9411"
networks:
- mall
volumes:
- /home/yufei/znv/logs/zipkin:/logs
- /etc/localtime:/etc/localtime
eureka:
image: znv/eureka
container_name: eureka
ports:
- "8761:8761"
networks:
- mall
volumes:
- /home/yufei/znv/logs/eureka:/logs
- /etc/localtime:/etc/localtime
environment:
- BOOT_ADMIN_HOST=admin
- ZIPKIN_ZONE_HOST=zipkin
config:
image: znv/config
container_name: config
depends_on:
- eureka
- admin
ports:
- "8100:8100"
networks:
- mall
volumes:
- /home/yufei/znv/logs/config:/logs
- /etc/localtime:/etc/localtime
environment:
- EUREKA_ZONE_HOST=eureka
- BOOT_ADMIN_HOST=admin
entrypoint: /wait-for.sh -d eureka:8761 -c 'java -jar /config-0.0.1-SNAPSHOT.jar';
admin:
image: znv/admin
container_name: admin
depends_on:
- eureka
ports:
- "8022:8022"
networks:
- mall
volumes:
- /home/yufei/znv/logs/admin:/logs
- /etc/localtime:/etc/localtime
environment:
- EUREKA_ZONE_HOST=eureka
- ZIPKIN_ZONE_HOST=zipkin
entrypoint: /wait-for.sh -d config:8100 -c 'java -jar /admin-0.0.1-SNAPSHOT.jar';
authorization:
image: znv/auth-authorization-server
container_name: authorization
depends_on:
- eureka
- admin
- config
ports:
- "8000:8000"
networks:
- mall
volumes:
- /home/yufei/znv/logs/authorization:/logs
- /etc/localtime:/etc/localtime
environment:
- EUREKA_ZONE_HOST=eureka
- BOOT_ADMIN_HOST=admin
- ZIPKIN_ZONE_HOST=zipkin
entrypoint: /wait-for.sh -d admin:8022 -c 'java -jar /auth-authorization-server-0.0.1-SNAPSHOT.jar';
auth:
image: znv/auth-server
container_name: auth
depends_on:
- eureka
- admin
- config
ports:
- "8020:8020"
networks:
- mall
volumes:
- /home/yufei/znv/logs/auth:/logs
- /etc/localtime:/etc/localtime
environment:
- EUREKA_ZONE_HOST=eureka
- BOOT_ADMIN_HOST=admin
- ZIPKIN_ZONE_HOST=zipkin
entrypoint: /wait-for.sh -d admin:8022 -c 'java -jar /auth-server-0.0.1-SNAPSHOT.jar';
gate:
image: znv/gate
container_name: gate
depends_on:
- eureka
- admin
- auth
- config
ports:
- "8080:8080"
networks:
- mall
volumes:
- /home/yufei/znv/logs/gate:/logs
- /etc/localtime:/etc/localtime
environment:
- EUREKA_ZONE_HOST=eureka
- BOOT_ADMIN_HOST=admin
- ZIPKIN_ZONE_HOST=zipkin
entrypoint: /wait-for.sh -d auth:8020 -c 'java -jar /gate-0.0.1-SNAPSHOT.jar';
turbine:
image: znv/turbine
container_name: turbine
depends_on:
- eureka
- admin
- config
ports:
- "8023:8023"
networks:
- mall
volumes:
- /home/yufei/znv/logs/turbine:/logs
- /etc/localtime:/etc/localtime
environment:
- EUREKA_ZONE_HOST=eureka
- BOOT_ADMIN_HOST=admin
- ZIPKIN_ZONE_HOST=zipkin
entrypoint: /wait-for.sh -d admin:8022 -c 'java -jar /turbine-0.0.1-SNAPSHOT.jar';
consumer:
image: znv/service-consumer
container_name: consumer
depends_on:
- eureka
- admin
- gate
- config
ports:
- "8081:8081"
networks:
- mall
volumes:
- /home/yufei/znv/logs/consumer:/logs
- /etc/localtime:/etc/localtime
environment:
- EUREKA_ZONE_HOST=eureka
- BOOT_ADMIN_HOST=admin
- ZIPKIN_ZONE_HOST=zipkin
entrypoint: /wait-for.sh -d gate:8080 -c 'java -jar /service-consumer-0.0.1-SNAPSHOT.jar';
producer:
image: znv/service-producer
container_name: producer
depends_on:
- eureka
- admin
- gate
- config
ports:
- "8082:8082"
networks:
- mall
volumes:
- /home/yufei/znv/logs/producer:/logs
- /etc/localtime:/etc/localtime
environment:
- EUREKA_ZONE_HOST=eureka
- BOOT_ADMIN_HOST=admin
- ZIPKIN_ZONE_HOST=zipkin
entrypoint: /wait-for.sh -d gate:8080 -c 'java -jar /service-producer-0.0.1-SNAPSHOT.jar';
networks:
mall:
driver: bridge