-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (72 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
78 lines (72 loc) · 1.78 KB
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
version: "3"
services:
kafka:
image: 'bitnami/kafka:3.7.0'
container_name: kafka
hostname: kafka
ports:
- '9094:9094'
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
volumes:
- kafka-data:/tmp/kraft-combined-logs
elastic-search:
image: elasticsearch:7.14.1
container_name: elasticsearch
restart: always
ports:
- "9200:9200"
environment:
- discovery.type=single-node
networks:
- default
kibana:
image: kibana:7.14.1
container_name: kibana
restart: always
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_HOSTS=http://elastic-search:9200
networks:
- default
logstash:
image: logstash:7.14.1
container_name: logstash
restart: always
ports:
- "5600:5600" # Socket port
- "5044:5044"
# - "9600:9600"
volumes:
- ./logstash.conf:/usr/share/logstash/pipeline/logstash.conf
environment:
- XPACK_MONITORING_ELASTICSEARCH_HOSTS=http://elastic-search:9200
- XPACK_MONITORING_ENABLED=true
networks:
- default
redis:
image: redis:8.0-M03-alpine
container_name: redis
ports:
- '6379:6379'
volumes:
- cache:/data
networks:
- elk
networks:
elk:
driver: bridge
volumes:
es-data:
driver: local
cache:
driver: local
kafka-data:
driver: local