forked from fgeller/kt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-dependencies.yml
47 lines (46 loc) · 1.48 KB
/
test-dependencies.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
---
version: '2'
services:
zookeeper-1:
image: confluentinc/cp-zookeeper:5.4.1
ports:
- "2181:2181"
environment:
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka-1:
image: confluentinc/cp-kafka:5.4.1
depends_on:
- zookeeper-1
ports:
- "9092:9092"
- "29092:29092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-1:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper-1:2181
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CONFLUENT_SCHEMA_REGISTRY_URL: http://schemaregistry-1:8081
KAFKA_SSL_CLIENT_AUTH: none
# Refer to fgeller/kt to configure with SSL support
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./test-secrets/:/etc/kafka/secrets
schemaregistry-1:
image: confluentinc/cp-schema-registry:5.4.0
hostname: schemaregistry-1
depends_on:
- zookeeper-1
- kafka-1
ports:
- 8081:8081
environment:
SCHEMA_REGISTRY_HOST_NAME: schemaregistry-1
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka-1:29092