-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-elk-stack.yml
69 lines (63 loc) · 1.43 KB
/
docker-compose-elk-stack.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
version: "3.9"
services:
elasticsearch:
build:
context: .
dockerfile: elasticsearch.Dockerfile
volumes:
- "${DATA_DIR}/elasticsearch:/usr/share/elasticsearch/data"
ports:
- "9200:9200"
- "9300:9300"
kibana:
build:
context: .
dockerfile: kibana.Dockerfile
ports:
- "5601:5601"
links:
- elasticsearch
zookeeper:
image: wurstmeister/zookeeper:3.4.6
expose:
- "2181"
kafka:
image: wurstmeister/kafka:2.13-2.8.1
depends_on:
- zookeeper
ports:
- "9094:9094"
volumes:
- "${DATA_DIR}/kafka:/kafka"
links:
- zookeeper
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9092,OUTSIDE://localhost:9094
KAFKA_LISTENERS: INSIDE://0.0.0.0:9092,OUTSIDE://0.0.0.0:9094
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
logstash:
build:
context: .
dockerfile: logstash.Dockerfile
ports:
- "5044:5044"
- "1111:1111"
depends_on:
- kafka
- elasticsearch
environment:
BOOTSTRAP_SERVERS: "kafka:9092"
links:
- elasticsearch
kafdrop:
image: obsidiandynamics/kafdrop:3.30.0
ports:
- "9000:9000"
depends_on:
- kafka
environment:
KAFKA_BROKERCONNECT: "kafka:9092"
links:
- elasticsearch