-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup-example.yaml
68 lines (61 loc) · 2.95 KB
/
setup-example.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
version: '2'
services:
kafka-ui:
container_name: kafka-ui
image: ghcr.io/kafbat/kafka-ui:latest
ports:
- 8080:8080
depends_on:
- zookeeper0
- kafka0
environment:
# you can specify aws creds globally. Optional.
AWS_ACCESS_KEY_ID: '{ AWS_ACCESS_KEY_ID }'
AWS_SECRET_ACCESS_KEY: '{ AWS_SECRET_ACCESS_KEY }'
kafka.clusters.0.name: MyFavoriteCluster
kafka.clusters.0.bootstrapServers: kafka0:29092
kafka.clusters.0.serde.0.name: GlueSchemaRegistry
kafka.clusters.0.serde.0.filePath: /glue-serde/kafkaui-glue-serde-1.0-SNAPSHOT-jar-with-dependencies.jar
kafka.clusters.0.serde.0.className: io.kafbat.ui.serde.glue.GlueSerde
kafka.clusters.0.serde.0.properties.region: us-east-1 #required
kafka.clusters.0.serde.0.properties.registry: kui-test #required, name of Glue Schema Registry
# template that will be used to find schema name for topic key. Optional, default is null (not set).
kafka.clusters.0.serde.0.properties.keySchemaNameTemplate: "%s-key"
# template that will be used to find schema name for topic value. Optional, default is '%s'
kafka.clusters.0.serde.0.properties.valueSchemaNameTemplate: "%s-value"
# schema name -> topics pattern where it will be used for keys. Optional.
kafka.clusters.0.serde.0.properties.topicKeysSchemas.some-topic-key: "some-topic1|some-topic2"
# schema name -> topics pattern where it will be used for values. Optional.
kafka.clusters.0.serde.0.properties.topicValuesSchemas.some-topic-value: "some-topic1|some-topic2"
kafka.clusters.0.serde.0.properties.topicValuesSchemas.another-topic-val: "another-topic-value"
# you can explicitly specify aws creds on serde level (not globally, Optional.):
# by providing access keys:
kafka.clusters.0.serde.0.properties.awsAccessKeyId: '{ AWS_ACCESS_KEY_ID }'
kafka.clusters.0.serde.0.properties.awsSecretAccessKey: '{ AWS_SECRET_ACCESS_KEY }'
# or by using profile path properties:
kafka.clusters.0.serde.0.properties.awsProfileName: '{ profile which will be looked in profile file, "default" by default}'
kafka.clusters.0.serde.0.properties.awsProfileFile: '{ path to profile path, "~/.aws/credentials" by default }'
volumes:
- ./../target:/glue-serde
zookeeper0:
image: confluentinc/cp-zookeeper:7.2.1
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- 2181:2181
kafka0:
image: confluentinc/cp-kafka:7.2.1
depends_on:
- zookeeper0
ports:
- 9092:9092
- 9997:9997
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper0:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka0:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1