-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
113 lines (107 loc) · 2.55 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
---
version: "2"
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./certs/:/etc/nginx/certs/
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- mthc
misp-db:
image: mysql/mysql-server:5.7
restart: unless-stopped
volumes:
- ./data/misp/db:/var/lib/mysql
environment:
- MYSQL_DATABASE=misp
- MYSQL_USER=misp
- MYSQL_PASSWORD=misp
- MYSQL_ROOT_PASSWORD=misp
networks:
- mthc
misp-web:
build: apps/misp-docker/web
image: misp:latest
restart: unless-stopped
volumes:
- /dev/urandom/:/dev/random
- ./data/misp/web:/var/www/MISP
environment:
- MYSQL_HOST=misp-db
- MYSQL_DATABASE=misp
- MYSQL_USER=misp
- MYSQL_PASSWORD=misp
- MISP_ADMIN_PASSPHRASE=admin
- MISP_BASEURL=http:\/\/misp\.test
- POSTFIX_RELAY_HOST=relay.fqdn
- TIMEZONE=Europe/Brussels
- VIRTUAL_HOST=misp.ir.local
networks:
mthc:
ipv4_address: 172.16.0.10
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.1
environment:
- http.host=0.0.0.0
- transport.host=0.0.0.0
- xpack.security.enabled=false
- cluster.name=hive
- discovery.type=single-node
- thread_pool.search.queue_size=100000
- thread_pool.write.queue_size=100000
ulimits:
nofile:
soft: 65536
hard: 65536
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
networks:
mthc:
ipv4_address: 172.16.0.9
cortex:
image: thehiveproject/cortex:latest
depends_on:
- elasticsearch
expose:
- "9001"
volumes:
- ./conf/cortex.conf:/etc/cortex/application.conf
- ./apps/Cortex-Analyzers:/opt/Cortex-Analyzers
- ./data/cortex/:/data
environment:
- VIRTUAL_HOST=cortex.ir.local
- VIRTUAL_PORT=9001
networks:
mthc:
ipv4_address: 172.16.0.11
thehive:
image: thehiveproject/thehive:latest
depends_on:
- elasticsearch
- cortex
expose:
- "9000"
volumes:
- ./conf/thehive.conf:/etc/thehive/application.conf
environment:
- VIRTUAL_HOST=thehive.ir.local
- VIRTUAL_PORT=9000
networks:
mthc:
ipv4_address: 172.16.0.12
command: --cortex-key=<key>
networks:
mthc:
driver: bridge
ipam:
config:
- subnet: 172.16.0.0/24
gateway: 172.16.0.2