-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
88 lines (83 loc) · 2.15 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
version: '3.8'
services:
elasticdfir01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
container_name: elasticdfir01
hostname: elasticdfir01
environment:
- node.name=elasticdfir01
- cluster.name=es-dfir-docker-cluster
- discovery.seed_hosts=elasticdfir02
- cluster.initial_master_nodes=elasticdfir01, elasticdfir02
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data:rw
ports:
- 9200:9200
networks:
- elastic
elasticdfir02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
container_name: elasticdfir02
hostname: elasticdfir02
environment:
- node.name=elasticdfir02
- cluster.name=es-dfir-docker-cluster
- discovery.seed_hosts=elasticdfir01
- cluster.initial_master_nodes=elasticdfir01,elasticdfir02
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data02:/usr/share/elasticsearch/data:rw
ports:
- 9201:9201
networks:
- elastic
logstash:
image: logstash:7.7.0
container_name: logstash
hostname: logstash
depends_on:
- elasticdfir01
- elasticdfir02
volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./logstash/pipeline/:/usr/share/logstash/pipeline/:ro
- ./logstash/patterns/:/usr/share/logstash/patterns/:ro
ports:
- 5044:5044
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.9.2
container_name: kibana
hostname: kibana
depends_on:
- elasticdfir01
- elasticdfir02
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticdfir01:9200
ELASTICSEARCH_HOSTS: http://elasticdfir01:9200
volumes:
- ./kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
networks:
- elastic
volumes:
data01:
driver: local
data02:
driver: local
networks:
elastic:
driver: bridge