-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1017 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1017 Bytes
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
services:
mongo:
image: mongo:8.0.10
restart: always
network_mode: host
volumes:
- mongo_data:/data/db
redis:
image: redis:7.4.2
restart: always
network_mode: host
volumes:
- redis_data:/data
zookeeper:
image: bitnami/zookeeper:3.8.2
restart: always
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
volumes:
- zookeeper_data:/bitnami/zookeeper/data
ports:
- "2181:2181"
kafka:
image: bitnami/kafka:3.5.1
restart: always
depends_on:
- zookeeper
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092
- ALLOW_PLAINTEXT_LISTENER=yes
volumes:
- kafka_data:/bitnami/kafka/data
ports:
- "9092:9092"
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local
mongo_data:
external: true
redis_data:
external: true