-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-swarm-qa.yml
188 lines (174 loc) · 4.29 KB
/
docker-compose-swarm-qa.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
188
version: '3.8'
services:
config-server:
image: "${IMAGE_TAG_CONFIG_SERVER}"
deploy:
resources:
limits:
memory: 512M
networks:
- clarusnet
ports:
- 8888:8888
discovery-server:
image: "${IMAGE_TAG_DISCOVERY_SERVER}"
deploy:
resources:
limits:
memory: 512M
depends_on:
- config-server
entrypoint: ["./dockerize","-wait=tcp://config-server:8888","-timeout=60s","--","java", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
networks:
- clarusnet
ports:
- 8761:8761
customers-service:
image: "${IMAGE_TAG_CUSTOMERS_SERVICE}"
deploy:
resources:
limits:
memory: 512M
replicas: 3
update_config:
parallelism: 2
delay: 5s
order: start-first
depends_on:
- config-server
- discovery-server
entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
networks:
- clarusnet
ports:
- 8081:8081
visits-service:
image: "${IMAGE_TAG_VISITS_SERVICE}"
deploy:
resources:
limits:
memory: 512M
replicas: 3
update_config:
parallelism: 2
delay: 5s
order: start-first
depends_on:
- config-server
- discovery-server
entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
networks:
- clarusnet
ports:
- 8082:8082
vets-service:
image: "${IMAGE_TAG_VETS_SERVICE}"
deploy:
resources:
limits:
memory: 512M
replicas: 3
update_config:
parallelism: 2
delay: 5s
order: start-first
depends_on:
- config-server
- discovery-server
entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
networks:
- clarusnet
ports:
- 8083:8083
api-gateway:
image: "${IMAGE_TAG_API_GATEWAY}"
deploy:
resources:
limits:
memory: 512M
replicas: 5
update_config:
parallelism: 2
delay: 5s
order: start-first
depends_on:
- config-server
- discovery-server
entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
networks:
- clarusnet
ports:
- 8080:8080
tracing-server:
image: openzipkin/zipkin
deploy:
resources:
limits:
memory: 512M
environment:
- JAVA_OPTS=-XX:+UnlockExperimentalVMOptions -Djava.security.egd=file:/dev/./urandom
networks:
- clarusnet
ports:
- 9411:9411
admin-server:
image: "${IMAGE_TAG_ADMIN_SERVER}"
deploy:
resources:
limits:
memory: 512M
depends_on:
- config-server
- discovery-server
entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
networks:
- clarusnet
ports:
- 9090:9090
hystrix-dashboard:
image: "${IMAGE_TAG_HYSTRIX_DASHBOARD}"
deploy:
resources:
limits:
memory: 512M
depends_on:
- config-server
- discovery-server
entrypoint: ["./dockerize","-wait=tcp://discovery-server:8761","-timeout=60s","--","java", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
networks:
- clarusnet
ports:
- 7979:7979
## Grafana / Prometheus
grafana-server:
image: "${IMAGE_TAG_GRAFANA_SERVICE}"
deploy:
resources:
limits:
memory: 256M
networks:
- clarusnet
ports:
- 3000:3000
prometheus-server:
image: "${IMAGE_TAG_PROMETHEUS_SERVICE}"
deploy:
resources:
limits:
memory: 256M
networks:
- clarusnet
ports:
- 9091:9090
mysql-server:
image: mysql:5.7.8
environment:
MYSQL_ROOT_PASSWORD: petclinic
MYSQL_DATABASE: petclinic
networks:
- clarusnet
ports:
- 3306:3306
networks:
clarusnet:
driver: overlay