-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-kafka.yml
executable file
·50 lines (49 loc) · 1.57 KB
/
docker-compose-kafka.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
---
version: '3.5'
services:
zookeeper:
ipc: host
image: confluentinc/cp-zookeeper:5.5.1
ports:
- "2181:2181"
networks:
- ${NETWORK}
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka:
ipc: host
image: confluentinc/cp-server:5.5.1
depends_on:
- zookeeper
hostname: kafka
ports:
- "9092:9092"
networks:
- ${NETWORK}
environment:
KAFKA_BROKER_ID: 1
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://0.0.0.0:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_MESSAGE_MAX_BYTES: 1000000000
KAFKA_REPLICA_FETCH_MAX_BYTES: 1000000000
KAFKA_QUEUED_MAX_REQUESTS: 100000
KAFKA_LOG_RETENTION_MS: 120000
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 20000
KAFKA_LOG_RETENTION_BYTES: 100000000
KAFKA_LOG_SEGMENT_BYTES: 50000000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
federated:
external: true
attachable-fl:
external: true
fl_ok:
external: true