-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
294 lines (273 loc) · 7.03 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
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
version: '3'
services:
rabbitmq:
image: rabbitmq:3.12-management
environment:
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
# RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: "-rabbit heartbeat 0 log_levels [{connection,debug}]"
ports:
- 15672:15672
- 5672:5672
networks:
- machinanet
neo4j:
image: neo4j:5.17-community #neo4j:5.3.0-community
ports:
- 7474:7474
- 7687:7687
volumes:
- neo4j-data:/data
environment:
- NEO4J_AUTH=neo4j/tXOCq81bn7QfGTMJMrkQqP4J1
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- NEO4J_initial_dbms_default__database=machina
# Raise memory limits
- NEO4J_server_memory_pagecache_size=4G
- NEO4J_server_memory_heap_initial__size=4G
- NEO4J_server_memory_heap_max__size=4G
networks:
- machinanet
base-alpine:
build:
context: ./images/machina-base
dockerfile: Dockerfile.alpine
image: behren/machina-base-alpine:latest
command: echo 'scaled'
base-ubuntu:
build:
context: ./images/machina-base
dockerfile: Dockerfile.ubuntu
image: behren/machina-base-ubuntu:latest
command: echo 'scaled'
base-ghidra:
build:
context: ./images/machina-base-ghidra
dockerfile: Dockerfile
depends_on:
- base-ubuntu
image: behren/machina-base-ghidra:latest
command: echo 'scaled'
docs-web:
depends_on:
- base-alpine
ports:
- 80:80
# - 2019:2019 # debug admin port
build:
context: ./images/machina-docs
dockerfile: Dockerfile
image: behren/machina-docs:latest
command: bash -c "caddy run --config /docs/Caddyfile.dev"
identifier:
depends_on:
- base-alpine
- initializer
build:
context: ./images/machina-identifier
image: behren/machina-identifier:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
initializer:
depends_on:
- base-alpine
build:
context: ./images/machina-initializer
image: behren/machina-initializer:latest
volumes:
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 neo4j:7687 && python3 src/run.py && tail -f /dev/null"
networks:
- machinanet
zipanalyzer:
depends_on:
- base-alpine
- initializer
build:
context: ./images/machina-zip
image: behren/machina-zip:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
jaranalyzer:
depends_on:
- base-alpine
- initializer
build:
context: ./images/machina-jar
image: behren/machina-jar:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
androguardanalysis:
depends_on:
- base-alpine
- initializer
build:
context: ./images/machina-androguard
image: behren/machina-androguard:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
findurls:
depends_on:
- base-alpine
- initializer
build:
context: ./images/machina-findurls
image: behren/machina-findurls:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
exif:
depends_on:
- base-alpine
- initializer
build:
context: ./images/machina-exif
image: behren/machina-exif:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
gzip:
depends_on:
- base-alpine
- initializer
build:
context: ./images/machina-gzip
image: behren/machina-gzip:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
bzip2:
depends_on:
- base-alpine
- initializer
build:
context: ./images/machina-bz2
image: behren/machina-bz2:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
tar:
depends_on:
- base-alpine
- initializer
build:
context: ./images/machina-tar
image: behren/machina-tar:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
ssdeepanalysis:
depends_on:
- base-ubuntu
- initializer
build:
context: ./images/machina-ssdeep
image: behren/machina-ssdeep:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
similarityanalysis:
depends_on:
- base-ubuntu
- initializer
build:
context: ./images/machina-similarity
image: behren/machina-similarity:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
binwalk:
depends_on:
- base-ubuntu
- initializer
build:
context: ./images/machina-binwalk
image: behren/machina-binwalk:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
ghidra-project-creator:
depends_on:
- base-ghidra
- initializer
build:
context: ./images/machina-ghidra-project-creator
image: behren/machina-ghidra-project-creator:latest
volumes:
- ./data:/data
- ./configs:/configs
command:
bash -c "./wait-for-it.sh -t 60 rabbitmq:5672 -- ./wait-for-it.sh -t 60 neo4j:7687
&& python3 src/run.py"
networks:
- machinanet
volumes:
neo4j-data:
networks:
machinanet:
driver: bridge