-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
50 lines (49 loc) · 1.53 KB
/
docker-compose.yaml
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"
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.2.1-1
ports:
- 2181:2181
environment:
ZOOKEEPER_LOG4J_ROOT_LOGLEVEL: info
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
volumes:
- .data/zookeeper/data:/var/lib/zookeeper/data
- .data/zookeeper/logs:/var/lib/zookeeper/log
kafka:
image: confluentinc/cp-kafka:5.2.1-1
ports:
- 9092:9092
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
PORT: 9092
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_HOST_NAME: kafka
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAKFA_OPTS: -Djavax.net.debug=all
KAFKA_LOG4J_ROOT_LOGLEVEL: info
volumes:
- .data/kafka/data:/var/lib/kafka/data
depends_on:
- zookeeper
schemaregistry:
image: confluentinc/cp-schema-registry:5.2.1-1
ports:
- 8681:8681
environment:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181
SCHEMA_REGISTRY_HOST_NAME: schemaregistry
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8681
SCHEMA_REGISTRY_KAFKASTORE_TOPIC_REPLICATION_FACTOR: "1"
SCHEMA_REGISTRY_KAFKASTORE_TOPIC: _schemas
SCHEMA_REGISTRY_DEBUG: "true"
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9092
SCHEMA_REGISTRY_LOG4J_ROOT_LOGLEVEL: info
depends_on:
- kafka