-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
102 lines (97 loc) · 2.14 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
version: "3.8"
services:
zookeeper:
image: "docker.io/bitnami/zookeeper:3-debian-10"
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
volumes:
- "zookeeper_data:/smart_phone_iot"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- iot_network
kafka:
image: "docker.io/bitnami/kafka:2-debian-10"
container_name: kafka
hostname: kafka
ports:
- "9092:9092"
- "9093:9093"
volumes:
- "kafka_data:/smart_phone_iot"
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093
- KAFKA_INTER_BROKER_LISTENER_NAME=CLIENT
networks:
- iot_network
depends_on:
- zookeeper
links:
- zookeeper
producer:
build:
context: ./kafka-producer
container_name: kafka-producer
restart: always
ports:
- "5555:5555/udp"
networks:
- iot_network
depends_on:
- kafka
links:
- kafka
elasticsearch:
image: elasticsearch:7.7.0
container_name: elasticsearch
hostname: elasticsearch
environment:
- "discovery.type=single-node"
ports:
- "9200:9200"
- "9300:9300"
networks:
- iot_network
kibana:
image: kibana:7.7.0
container_name: kibana
hostname: kibana
ports:
- "5601:5601"
links:
- elasticsearch:elasticsearch
depends_on:
- elasticsearch
networks:
- iot_network
logstash:
image: logstash:7.7.0
container_name: logstash
hostname: logstash
ports:
- "9600:9600"
- "8089:8089"
volumes:
- ./logstash:/usr/share/logstash/pipeline/
links:
- elasticsearch:elasticsearch
- kafka
depends_on:
- elasticsearch
- kafka
networks:
- iot_network
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local
networks:
iot_network:
driver: bridge