This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
129 lines (127 loc) · 3.13 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
version: '2.2'
services:
### MongoDB ###
mongodb:
environment:
- TZ=EST
image: mongo:4.4
container_name: mongo
volumes:
- mongo_data:/data/db
networks:
- elastic
### ElasticSearch ###
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0
container_name: elasticsearch
environment:
- TZ=EST
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02,es03
- cluster.initial_master_nodes=elasticsearch,es02,es03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms4G -Xmx4G"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic
es02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0
container_name: es02
environment:
- TZ=EST
- node.name=es02
- cluster.name=es-docker-cluster
- discovery.seed_hosts=elasticsearch,es03
- cluster.initial_master_nodes=elasticsearch,es02,es03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms4G -Xmx4G"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data02:/usr/share/elasticsearch/data
networks:
- elastic
es03:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0
container_name: es03
environment:
- TZ=EST
- node.name=es03
- cluster.name=es-docker-cluster
- discovery.seed_hosts=elasticsearch,es02
- cluster.initial_master_nodes=elasticsearch,es02,es03
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms4G -Xmx4G"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data03:/usr/share/elasticsearch/data
networks:
- elastic
### GrayLog ###
graylog:
image: graylog/graylog:4.0
container_name: graylog
environment:
- TZ=EST
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=C#@nG3this.P@33w*rD
# Password: admin
- GRAYLOG_ROOT_PASSWORD_SHA2=197afc606f316fbf81770ee2430a9d33b5e35a20dd24ff07b9f56117feeec540
# UPDATE IP ADDRESS TO HOST IP IF RUNNING ON SEPERATE SYSTEM
- GRAYLOG_HTTP_EXTERNAL_URI=http://10.0.0.100:9000/
- GRAYLOG_ELASTICSEARCH_VERSION=7
- GRAYLOG_TIMEZONE=EST
entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh
links:
- mongodb:mongo
- elasticsearch
restart: always
depends_on:
- mongodb
- elasticsearch
volumes:
- graylog_data:/usr/share/graylog/data
networks:
- elastic
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 5140:5140
# Syslog UDP
- 5140:5140/udp
# Suricata
- 5040:5040/udp
# Netflow
- 2550:2550/udp
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
volumes:
data01:
driver: local
data02:
driver: local
data03:
driver: local
graylog_data:
driver: local
mongo_data:
driver: local
networks:
elastic:
driver: bridge