-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
825 lines (783 loc) · 21.3 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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
# CyberPot: STANDARD
networks:
adbhoney_local:
ciscoasa_local:
citrixhoneypot_local:
conpot_local_IEC104:
conpot_local_guardian_ast:
conpot_local_ipmi:
conpot_local_kamstrup_382:
cowrie_local:
ddospot_local:
dicompot_local:
dionaea_local:
elasticpot_local:
heralding_local:
ipphoney_local:
mailoney_local:
medpot_local:
redishoneypot_local:
sentrypeer_local:
tanner_local:
spiderfoot_local:
wordpot_local:
ewsposter_local:
services:
#########################################
#### DEV
#########################################
#### CyberPot Init - Never delete this!
#########################################
# CyberPot Init Service
cyberpotinit:
container_name: cyberpotinit
env_file:
- .env
restart: always
stop_grace_period: 60s
tmpfs:
- /tmp/etc:uid=2000,gid=2000
- /tmp/:uid=2000,gid=2000
network_mode: "host"
cap_add:
- NET_ADMIN
image: ${CYBERPOT_REPO}/cyberpotinit:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
volumes:
- ${CYBERPOT_DOCKER_COMPOSE}:/tmp/cyberpot/docker-compose.yml:ro
- ${CYBERPOT_DATA_PATH}/blackhole:/etc/blackhole
- ${CYBERPOT_DATA_PATH}:/data
- /var/run/docker.sock:/var/run/docker.sock:ro
##################
#### Honeypots
##################
# Adbhoney service
adbhoney:
container_name: adbhoney
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- adbhoney_local
ports:
- "5555:5555"
image: ${CYBERPOT_REPO}/adbhoney:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/adbhoney/log:/opt/adbhoney/log
- ${CYBERPOT_DATA_PATH}/adbhoney/downloads:/opt/adbhoney/dl
# Ciscoasa service
ciscoasa:
container_name: ciscoasa
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
tmpfs:
- /tmp/ciscoasa:uid=2000,gid=2000
networks:
- ciscoasa_local
ports:
- "5000:5000/udp"
- "8443:8443"
image: ${CYBERPOT_REPO}/ciscoasa:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/ciscoasa/log:/var/log/ciscoasa
# CitrixHoneypot service
citrixhoneypot:
container_name: citrixhoneypot
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- citrixhoneypot_local
ports:
- "443:443"
image: ${CYBERPOT_REPO}/citrixhoneypot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/citrixhoneypot/log:/opt/citrixhoneypot/logs
# Conpot IEC104 service
conpot_IEC104:
container_name: conpot_iec104
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
environment:
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
- CONPOT_JSON_LOG=/var/log/conpot/conpot_IEC104.json
- CONPOT_LOG=/var/log/conpot/conpot_IEC104.log
- CONPOT_TEMPLATE=IEC104
- CONPOT_TMP=/tmp/conpot
tmpfs:
- /tmp/conpot:uid=2000,gid=2000
networks:
- conpot_local_IEC104
ports:
- "161:161/udp"
- "2404:2404"
image: ${CYBERPOT_REPO}/conpot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/conpot/log:/var/log/conpot
# Conpot guardian_ast service
conpot_guardian_ast:
container_name: conpot_guardian_ast
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
environment:
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
- CONPOT_JSON_LOG=/var/log/conpot/conpot_guardian_ast.json
- CONPOT_LOG=/var/log/conpot/conpot_guardian_ast.log
- CONPOT_TEMPLATE=guardian_ast
- CONPOT_TMP=/tmp/conpot
tmpfs:
- /tmp/conpot:uid=2000,gid=2000
networks:
- conpot_local_guardian_ast
ports:
- "10001:10001"
image: ${CYBERPOT_REPO}/conpot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/conpot/log:/var/log/conpot
# Conpot ipmi
conpot_ipmi:
container_name: conpot_ipmi
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
environment:
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
- CONPOT_JSON_LOG=/var/log/conpot/conpot_ipmi.json
- CONPOT_LOG=/var/log/conpot/conpot_ipmi.log
- CONPOT_TEMPLATE=ipmi
- CONPOT_TMP=/tmp/conpot
tmpfs:
- /tmp/conpot:uid=2000,gid=2000
networks:
- conpot_local_ipmi
ports:
- "623:623/udp"
image: ${CYBERPOT_REPO}/conpot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/conpot/log:/var/log/conpot
# Conpot kamstrup_382
conpot_kamstrup_382:
container_name: conpot_kamstrup_382
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
environment:
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
- CONPOT_JSON_LOG=/var/log/conpot/conpot_kamstrup_382.json
- CONPOT_LOG=/var/log/conpot/conpot_kamstrup_382.log
- CONPOT_TEMPLATE=kamstrup_382
- CONPOT_TMP=/tmp/conpot
tmpfs:
- /tmp/conpot:uid=2000,gid=2000
networks:
- conpot_local_kamstrup_382
ports:
- "1025:1025"
- "50100:50100"
image: ${CYBERPOT_REPO}/conpot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/conpot/log:/var/log/conpot
# Cowrie service
cowrie:
container_name: cowrie
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
tmpfs:
- /tmp/cowrie:uid=2000,gid=2000
- /tmp/cowrie/data:uid=2000,gid=2000
networks:
- cowrie_local
ports:
- "22:22"
- "23:23"
image: ${CYBERPOT_REPO}/cowrie:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/cowrie/downloads:/home/cowrie/cowrie/dl
- ${CYBERPOT_DATA_PATH}/cowrie/keys:/home/cowrie/cowrie/etc
- ${CYBERPOT_DATA_PATH}/cowrie/log:/home/cowrie/cowrie/log
- ${CYBERPOT_DATA_PATH}/cowrie/log/tty:/home/cowrie/cowrie/log/tty
# Ddospot service
ddospot:
container_name: ddospot
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- ddospot_local
ports:
- "19:19/udp"
- "53:53/udp"
- "123:123/udp"
# - "161:161/udp"
- "1900:1900/udp"
image: ${CYBERPOT_REPO}/ddospot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/ddospot/log:/opt/ddospot/ddospot/logs
- ${CYBERPOT_DATA_PATH}/ddospot/bl:/opt/ddospot/ddospot/bl
- ${CYBERPOT_DATA_PATH}/ddospot/db:/opt/ddospot/ddospot/db
# Dicompot service
# Get the Horos Client for testing: https://horosproject.org/
# Get Dicom images (CC BY 3.0): https://www.cancerimagingarchive.net/collections/
# Put images (which must be in Dicom DCM format or it will not work!) into /data/dicompot/images
dicompot:
container_name: dicompot
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- dicompot_local
ports:
- "11112:11112"
image: ${CYBERPOT_REPO}/dicompot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/dicompot/log:/var/log/dicompot
# - ${CYBERPOT_DATA_PATH}/dicompot/images:/opt/dicompot/images
# Dionaea service
dionaea:
container_name: dionaea
stdin_open: true
tty: true
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- dionaea_local
ports:
- "20:20"
- "21:21"
- "42:42"
- "69:69/udp"
- "81:81"
- "135:135"
# - "443:443"
- "445:445"
- "1433:1433"
- "1723:1723"
- "1883:1883"
- "3306:3306"
# - "5060:5060"
# - "5060:5060/udp"
# - "5061:5061"
- "27017:27017"
image: ${CYBERPOT_REPO}/dionaea:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/dionaea/roots/ftp:/opt/dionaea/var/dionaea/roots/ftp
- ${CYBERPOT_DATA_PATH}/dionaea/roots/tftp:/opt/dionaea/var/dionaea/roots/tftp
- ${CYBERPOT_DATA_PATH}/dionaea/roots/www:/opt/dionaea/var/dionaea/roots/www
- ${CYBERPOT_DATA_PATH}/dionaea/roots/upnp:/opt/dionaea/var/dionaea/roots/upnp
- ${CYBERPOT_DATA_PATH}/dionaea:/opt/dionaea/var/dionaea
- ${CYBERPOT_DATA_PATH}/dionaea/binaries:/opt/dionaea/var/dionaea/binaries
- ${CYBERPOT_DATA_PATH}/dionaea/log:/opt/dionaea/var/log
- ${CYBERPOT_DATA_PATH}/dionaea/rtp:/opt/dionaea/var/dionaea/rtp
# ElasticPot service
elasticpot:
container_name: elasticpot
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- elasticpot_local
ports:
- "9200:9200"
image: ${CYBERPOT_REPO}/elasticpot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/elasticpot/log:/opt/elasticpot/log
# Heralding service
heralding:
container_name: heralding
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
tmpfs:
- /tmp/heralding:uid=2000,gid=2000
networks:
- heralding_local
ports:
# - "21:21"
# - "22:22"
# - "23:23"
# - "25:25"
# - "80:80"
- "110:110"
- "143:143"
# - "443:443"
- "465:465"
- "993:993"
- "995:995"
# - "3306:3306"
# - "3389:3389"
- "1080:1080"
- "5432:5432"
- "5900:5900"
image: ${CYBERPOT_REPO}/heralding:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/heralding/log:/var/log/heralding
# Honeytrap service
honeytrap:
container_name: honeytrap
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
tmpfs:
- /tmp/honeytrap:uid=2000,gid=2000
network_mode: "host"
cap_add:
- NET_ADMIN
image: ${CYBERPOT_REPO}/honeytrap:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/honeytrap/attacks:/opt/honeytrap/var/attacks
- ${CYBERPOT_DATA_PATH}/honeytrap/downloads:/opt/honeytrap/var/downloads
- ${CYBERPOT_DATA_PATH}/honeytrap/log:/opt/honeytrap/var/log
# Ipphoney service
ipphoney:
container_name: ipphoney
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- ipphoney_local
ports:
- "631:631"
image: ${CYBERPOT_REPO}/ipphoney:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/ipphoney/log:/opt/ipphoney/log
# Mailoney service
mailoney:
container_name: mailoney
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
environment:
- HPFEEDS_SERVER=
- HPFEEDS_IDENT=user
- HPFEEDS_SECRET=pass
- HPFEEDS_PORT=20000
- HPFEEDS_CHANNELPREFIX=prefix
networks:
- mailoney_local
ports:
- "25:25"
- "587:25"
image: ${CYBERPOT_REPO}/mailoney:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/mailoney/log:/opt/mailoney/logs
# Medpot service
medpot:
container_name: medpot
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- medpot_local
ports:
- "2575:2575"
image: ${CYBERPOT_REPO}/medpot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/medpot/log/:/var/log/medpot
# Redishoneypot service
redishoneypot:
container_name: redishoneypot
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- redishoneypot_local
ports:
- "6379:6379"
image: ${CYBERPOT_REPO}/redishoneypot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/redishoneypot/log:/var/log/redishoneypot
# SentryPeer service
sentrypeer:
container_name: sentrypeer
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
# environment:
# - SENTRYPEER_PEER_TO_PEER=1
networks:
- sentrypeer_local
ports:
# - "4222:4222/udp"
- "5060:5060/tcp"
- "5060:5060/udp"
# - "127.0.0.1:8082:8082"
image: ${CYBERPOT_REPO}/sentrypeer:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/sentrypeer/log:/var/log/sentrypeer
#### Snare / Tanner
## Tanner Redis Service
tanner_redis:
container_name: tanner_redis
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
tty: true
networks:
- tanner_local
image: ${CYBERPOT_REPO}/redis:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
## PHP Sandbox service
tanner_phpox:
container_name: tanner_phpox
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
tty: true
networks:
- tanner_local
image: ${CYBERPOT_REPO}/phpox:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
## Tanner API Service
tanner_api:
container_name: tanner_api
restart: always
depends_on:
- tanner_redis
tmpfs:
- /tmp/tanner:uid=2000,gid=2000
tty: true
networks:
- tanner_local
image: ${CYBERPOT_REPO}/tanner:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/tanner/log:/var/log/tanner
command: tannerapi
## Tanner Service
tanner:
container_name: tanner
restart: always
depends_on:
- tanner_api
- tanner_phpox
tmpfs:
- /tmp/tanner:uid=2000,gid=2000
tty: true
networks:
- tanner_local
image: ${CYBERPOT_REPO}/tanner:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
command: tanner
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/tanner/log:/var/log/tanner
- ${CYBERPOT_DATA_PATH}/tanner/files:/opt/tanner/files
## Snare Service
snare:
container_name: snare
restart: always
depends_on:
- tanner
tty: true
networks:
- tanner_local
ports:
- "80:80"
image: ${CYBERPOT_REPO}/snare:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
# Wordpot service
wordpot:
container_name: wordpot
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- wordpot_local
ports:
- "8080:80"
image: ${CYBERPOT_REPO}/wordpot:${CYBERPOT_VERSION}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/wordpot/log:/opt/wordpot/logs/
##################
#### NSM
##################
# Fatt service
fatt:
container_name: fatt
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
network_mode: "host"
cap_add:
- NET_ADMIN
- SYS_NICE
- NET_RAW
image: ${CYBERPOT_REPO}/fatt:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
volumes:
- ${CYBERPOT_DATA_PATH}/fatt/log:/opt/fatt/log
# P0f service
p0f:
container_name: p0f
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
network_mode: "host"
image: ${CYBERPOT_REPO}/p0f:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/p0f/log:/var/log/p0f
# Suricata service
suricata:
container_name: suricata
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
environment:
- OINKCODE=${OINKCODE:-OPEN} # Default to OPEN if unset or NULL (value provided by CyberPot .env)
# Loading external Rules from URL
# - FROMURL="https://username:password@yoururl.com|https://username:password@otherurl.com"
network_mode: "host"
cap_add:
- NET_ADMIN
- SYS_NICE
- NET_RAW
image: ${CYBERPOT_REPO}/suricata:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
volumes:
- ${CYBERPOT_DATA_PATH}/suricata/log:/var/log/suricata
##################
#### Tools
##################
#### ELK
## Elasticsearch service
elasticsearch:
container_name: elasticsearch
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
environment:
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms2048m -Xmx2048m
- ES_TMPDIR=/tmp
cap_add:
- IPC_LOCK
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 4g
ports:
- "127.0.0.1:64298:9200"
image: ${CYBERPOT_REPO}/elasticsearch:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
volumes:
- ${CYBERPOT_DATA_PATH}:/data
## Kibana service
kibana:
container_name: kibana
restart: always
depends_on:
elasticsearch:
condition: service_healthy
mem_limit: 1g
ports:
- "127.0.0.1:64296:5601"
image: ${CYBERPOT_REPO}/kibana:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
## Logstash service
logstash:
container_name: logstash
restart: always
depends_on:
elasticsearch:
condition: service_healthy
environment:
- LS_JAVA_OPTS=-Xms1024m -Xmx1024m
- CYBERPOT_TYPE=${CYBERPOT_TYPE:-HIVE}
- CYBERPOT_HIVE_USER=${CYBERPOT_HIVE_USER}
- CYBERPOT_HIVE_IP=${CYBERPOT_HIVE_IP}
- LS_SSL_VERIFICATION=${LS_SSL_VERIFICATION:-full}
ports:
- "127.0.0.1:64305:64305"
mem_limit: 2g
image: ${CYBERPOT_REPO}/logstash:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
volumes:
- ${CYBERPOT_DATA_PATH}:/data
## Map Redis Service
map_redis:
container_name: map_redis
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
stop_signal: SIGKILL
tty: true
image: ${CYBERPOT_REPO}/redis:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
## Map Web Service
map_web:
container_name: map_web
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
environment:
- MAP_COMMAND=AttackMapServer.py
stop_signal: SIGKILL
tty: true
ports:
- "127.0.0.1:64299:64299"
image: ${CYBERPOT_REPO}/map:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
## Map Data Service
map_data:
container_name: map_data
restart: always
depends_on:
elasticsearch:
condition: service_healthy
environment:
- MAP_COMMAND=DataServer_v2.py
- CYBERPOT_ATTACKMAP_TEXT=${CYBERPOT_ATTACKMAP_TEXT}
- TZ=${CYBERPOT_ATTACKMAP_TEXT_TIMEZONE}
stop_signal: SIGKILL
tty: true
image: ${CYBERPOT_REPO}/map:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
#### /ELK
# Ewsposter service
ewsposter:
container_name: ewsposter
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- ewsposter_local
environment:
- EWS_HPFEEDS_ENABLE=false
- EWS_HPFEEDS_HOST=host
- EWS_HPFEEDS_PORT=port
- EWS_HPFEEDS_CHANNELS=channels
- EWS_HPFEEDS_IDENT=user
- EWS_HPFEEDS_SECRET=secret
- EWS_HPFEEDS_TLSCERT=false
- EWS_HPFEEDS_FORMAT=json
image: ${CYBERPOT_REPO}/ewsposter:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
volumes:
- ${CYBERPOT_DATA_PATH}:/data
- ${CYBERPOT_DATA_PATH}/ews/conf/ews.ip:/opt/ewsposter/ews.ip
# Nginx service
nginx:
container_name: nginx
restart: always
environment:
- CYBERPOT_OSTYPE=${CYBERPOT_OSTYPE}
depends_on:
cyberpotinit:
condition: service_healthy
tmpfs:
- /var/tmp/nginx/client_body
- /var/tmp/nginx/proxy
- /var/tmp/nginx/fastcgi
- /var/tmp/nginx/uwsgi
- /var/tmp/nginx/scgi
- /run
- /var/lib/nginx/tmp:uid=100,gid=82
network_mode: "host"
ports:
- "64297:64297"
image: ${CYBERPOT_REPO}/nginx:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
read_only: true
volumes:
- ${CYBERPOT_DATA_PATH}/nginx/cert/:/etc/nginx/cert/:ro
- ${CYBERPOT_DATA_PATH}/nginx/conf/nginxpasswd:/etc/nginx/nginxpasswd:ro
- ${CYBERPOT_DATA_PATH}/nginx/conf/lswebpasswd:/etc/nginx/lswebpasswd:ro
- ${CYBERPOT_DATA_PATH}/nginx/log/:/var/log/nginx/
# Spiderfoot service
spiderfoot:
container_name: spiderfoot
restart: always
depends_on:
cyberpotinit:
condition: service_healthy
networks:
- spiderfoot_local
ports:
- "127.0.0.1:64303:8080"
image: ${CYBERPOT_REPO}/spiderfoot:${CYBERPOT_VERSION}
pull_policy: ${CYBERPOT_PULL_POLICY}
volumes:
- ${CYBERPOT_DATA_PATH}/spiderfoot:/home/spiderfoot/.spiderfoot