-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose-logstash.yml
143 lines (132 loc) · 3.67 KB
/
docker-compose-logstash.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
version: '3.3'
services:
jti_udp_logstash:
build: ./inputs/logstash/image
container_name: jti_udpNative
ports:
- "50000:50000/udp"
env_file:
- 'inputs/logstash/jti_udpNative/data/env.influxdb_logstash'
volumes:
- ./inputs/logstash/jti_udpNative/data:/var/tmp/data
- ./inputs/logstash/jti_udpNative/templates:/var/tmp/templates
links:
- influxdb
jti_openconfig_logstash:
build: ./inputs/logstash/image
container_name: jti_openConfig
ports:
- "50051:50051/tcp"
env_file:
- 'inputs/logstash/jti_openConfig/data/env.influxdb_logstash'
volumes:
- ./inputs/logstash/jti_openConfig/data:/var/tmp/data
- ./inputs/logstash/jti_openConfig/templates:/var/tmp/templates
links:
- influxdb
input-netflow:
build: ./inputs/logstash/image
container_name: input-netflow
ports:
- "2055:2055/udp"
volumes:
- ./inputs/logstash/input-netflow/data:/var/tmp/data
- ./inputs/logstash/input-netflow/templates:/var/tmp/templates
links:
- influxdb
influxdb:
image: influxdb:1.6.4
container_name: influxdb
ports:
- "8086:8086"
- "8090:8090"
volumes:
- influxdb_data_logstash:/var/lib/influxdb
- ./outputs/influxdb/image/config/influxdb.sh:/docker-entrypoint-initdb.d/influxdb.sh
chronograf:
image: quay.io/influxdb/chronograf:1.5.0.1
container_name: chronograf
environment:
INFLUXDB_URL: http://influxdb:8086/
KAPACITOR_URL: http://kapacitor:9092/
ports:
- "8888:8888"
links:
- influxdb
- kapacitor
kapacitor:
image: kapacitor:1.5.0
container_name: kapacitor
environment:
KAPACITOR_HOSTNAME: kapacitor
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086/
ports:
- "9092:9092"
links:
- influxdb
grafana:
image: grafana/grafana:5.3.2
container_name: grafana
environment:
GF_INSTALL_PLUGINS: grafana-clock-panel,grafana-simple-json-datasource
ports:
- "3000:3000"
volumes:
- ./web_ui/grafana/dashboards/logstash:/var/tmp
- ./web_ui/grafana/image/config/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml
- ./web_ui/grafana/image/config/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 10.49.232.211
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "logstash-jti-udp:1:1,logstash-jti-oc:1:1,logstash-netflow:1:1"
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092"
KAFKA_LISTENERS: "PLAINTEXT://kafka:9092"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.0
container_name: elasticsearch
environment:
- node.name=es01
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "ES_HEAP_SIZE=3g"
ulimits:
nproc: 65535
memlock:
soft: -1
hard: -1
cap_add:
- ALL
privileged: true
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.5.0
container_name: kibana
environment:
SERVER_NAME: kibana
ELASTICSEARCH_URL: http://elasticsearch:9200/
ports:
- 5601:5601
ulimits:
nproc: 65535
memlock:
soft: -1
hard: -1
cap_add:
- ALL
volumes:
esdata:
influxdb_data_logstash: