-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
39 lines (36 loc) · 1.34 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
# https://raw.githubusercontent.com/bitnami/bitnami-docker-kafka/master/docker-compose.yml
services:
kafka:
hostname: kafka
container_name: kafka
image: docker.io/bitnami/kafka:3.8.0
ports:
- "9092:9092"
- "29092:29092"
environment:
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_BROKER_ID=1
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- [email protected]:9094
- KAFKA_CFG_NODE_ID=1
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
- KAFKA_CFG_LISTENERS=CONTROLLER://:9094,PLAINTEXT://:29092,PLAINTEXT_HOST://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
- KAFKA_CFG_DEFAULT_REPLICATION_FACTOR=1
- KAFKA_CFG_GROUP_INITIAL_REBALANCE_DELAY_MS=10
- KAFKA_CFG_MAX_POLL_INTERVAL_MS=100
- KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR=1
- KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=1
volumes:
- "kafkadata:/bitnami"
ready:
image: andrewlock/wait-for-dependencies
command: kafka:9092
depends_on:
- kafka
volumes:
kafkadata:
driver: local