-
Notifications
You must be signed in to change notification settings - Fork 0
/
kafka.yaml
53 lines (52 loc) · 1.34 KB
/
kafka.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
51
52
53
kafka:
environment:
- KAFKA_ADVERTISED_HOST_NAME= ### PUT_YOUR_HOST_IP_HERE ###
- 'KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://:9092'
- KAFKA_AUTO_CREATE_TOPICS_ENABLE=True
- KAFKA_LOG_CLEANUP_POLICY=delete
- 'KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181'
hostname: kafka
image: 'confluentinc/cp-kafka:latest'
links:
- zookeeper
ports:
- '9092:9092'
kafka-connectors:
environment:
- 'CONNECT_BOOTSTRAP_SERVERS=kafka:9092'
- CONNECT_GROUP_ID=connect-cluster-A
image: 'confluentinc/cp-kafka-connect:latest'
links:
- kafka
- zookeeper
kafka-rest:
environment:
- KAFKA_REST_HOST_NAME=kafka-rest
- 'KAFKA_REST_ZOOKEEPER_CONNECT=zookeeper:2181'
image: 'confluentinc/cp-kafka-rest:latest'
links:
- kafka
- schema-registry
- zookeeper
ports:
- '8082:8082'
schema-registry:
environment:
- SCHEMA_REGISTRY_AVRO_COMPATIBILITY_LEVEL=none
- SCHEMA_REGISTRY_HOST_NAME=localhost
- 'SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=zookeeper:2181'
- 'SCHEMA_REGISTRY_LISTENERS=http://localhost:8081'
hostname: schema-registry
image: 'confluentinc/cp-schema-registry:latest'
links:
- kafka
- zookeeper
ports:
- '48081:8081'
zookeeper:
environment:
- ZOOKEEPER_CLIENT_PORT=2181
hostname: zookeeper
image: 'confluentinc/cp-zookeeper:latest'
ports:
- '2181:2181'