-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-sockshop-verum.yml
245 lines (210 loc) · 4.95 KB
/
docker-compose-sockshop-verum.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
version: '2'
services:
front-end:
image: weaveworksdemos/front-end:0.3.12
hostname: front-end
restart: always
cap_drop:
- all
read_only: true
edge-router:
image: weaveworksdemos/edge-router:0.1.1
ports:
- '80:80'
- '8080:8080'
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
- CHOWN
- SETGID
- SETUID
- DAC_OVERRIDE
read_only: true
tmpfs:
- /var/run:rw,noexec,nosuid
hostname: edge-router
restart: always
catalogue:
image: weaveworksdemos/catalogue:0.3.5
hostname: real-catalogue
restart: always
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
read_only: true
catalogue-db:
image: weaveworksdemos/catalogue-db:0.3.0
hostname: catalogue-db
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_DATABASE=socksdb
agent-catalogue:
build:
context: .
dockerfile: ./agent/Dockerfile
hostname: catalogue
command: bash -c "cd target && java -jar microVerumAgentProxy-0.0.1-SNAPSHOT-jar-with-dependencies.jar 80 catalogue 80 microverum-db 27017 sync"
depends_on:
- "microverum-db"
carts:
image: weaveworksdemos/carts:0.4.8
hostname: carts
restart: always
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid
environment:
- JAVA_OPTS=-Xms64m -Xmx128m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom -Dspring.zipkin.enabled=false
carts-db:
image: mongo:3.4
hostname: carts-db
restart: always
cap_drop:
- all
cap_add:
- CHOWN
- SETGID
- SETUID
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid
orders:
image: weaveworksdemos/orders:0.4.7
hostname: real-orders
restart: always
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid
environment:
- JAVA_OPTS=-Xms64m -Xmx128m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom -Dspring.zipkin.enabled=false
orders-db:
image: mongo:3.4
hostname: orders-db
restart: always
cap_drop:
- all
cap_add:
- CHOWN
- SETGID
- SETUID
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid
agent-orders:
build:
context: .
dockerfile: ./agent/Dockerfile
hostname: orders
command: bash -c "cd target && java -jar microVerumAgentProxy-0.0.1-SNAPSHOT-jar-with-dependencies.jar 80 orders 80 microverum-db 27017 sync"
depends_on:
- "microverum-db"
shipping:
image: weaveworksdemos/shipping:0.4.8
hostname: shipping
restart: always
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid
environment:
- JAVA_OPTS=-Xms64m -Xmx128m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom -Dspring.zipkin.enabled=false
queue-master:
image: weaveworksdemos/queue-master:0.3.1
hostname: queue-master
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid
rabbitmq:
image: rabbitmq:3.6.8
hostname: rabbitmq
restart: always
cap_drop:
- all
cap_add:
- CHOWN
- SETGID
- SETUID
- DAC_OVERRIDE
read_only: true
payment:
image: weaveworksdemos/payment:0.4.3
hostname: real-payment
restart: always
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
read_only: true
agent-payment:
build:
context: .
dockerfile: ./agent/Dockerfile
hostname: payment
command: bash -c "cd target && java -jar microVerumAgentProxy-0.0.1-SNAPSHOT-jar-with-dependencies.jar 80 payment 80 microverum-db 27017 sync"
depends_on:
- "microverum-db"
user:
image: weaveworksdemos/user:0.4.4
hostname: real-user
restart: always
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
read_only: true
environment:
- MONGO_HOST=user-db:27017
user-db:
image: weaveworksdemos/user-db:0.4.0
hostname: user-db
restart: always
cap_drop:
- all
cap_add:
- CHOWN
- SETGID
- SETUID
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid
user-sim:
image: weaveworksdemos/load-test:0.1.1
cap_drop:
- all
read_only: true
hostname: user-simulator
command: "-d 60 -r 200 -c 2 -h edge-router"
agent-user:
build:
context: .
dockerfile: ./agent/Dockerfile
hostname: payment
command: bash -c "cd target && java -jar microVerumAgentProxy-0.0.1-SNAPSHOT-jar-with-dependencies.jar 80 user 80 microverum-db 27017 sync"
depends_on:
- "microverum-db"
microverum-db:
image: mongo:3.4
hostname: microverum-db
restart: always