This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
forked from vdesabou/kafka-docker-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-executable-onprem-to-cloud-topicrecordnamestrategy.yml
executable file
·89 lines (81 loc) · 3.32 KB
/
docker-compose-executable-onprem-to-cloud-topicrecordnamestrategy.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
version: '3.5'
services:
zookeeper:
image: confluentinc/cp-zookeeper:${TAG}
hostname: zookeeper
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
# for 5.4.x:
KAFKA_OPTS: -Dzookeeper.4lw.commands.whitelist=*
broker:
image: confluentinc/${CP_KAFKA_IMAGE}:${TAG}
hostname: broker
container_name: broker
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
# Confluent Metrics Reporter for Control Center Cluster Monitoring
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: broker:9092
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
CONFLUENT_METRICS_ENABLE: 'true'
# for 5.4.x:
KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1
# for 6.0.0
KAFKA_CONFLUENT_BALANCER_TOPIC_REPLICATION_FACTOR: 1
schema-registry:
image: confluentinc/cp-schema-registry:${TAG}
hostname: schema-registry
container_name: schema-registry
ports:
- '8081:8081'
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: broker:9092
connect:
image: vdesabou/kafka-docker-playground-connect:${TAG}
volumes:
- ../../ccloud/replicator/executable-onprem-to-cloud-consumer.properties:/etc/kafka/executable-onprem-to-cloud-consumer.properties
- ../../ccloud/replicator/executable-onprem-to-cloud-producer.properties:/etc/kafka/executable-onprem-to-cloud-producer.properties
- ../../ccloud/replicator/executable-onprem-to-cloud-replicator.properties:/etc/kafka/executable-onprem-to-cloud-replicator.properties
- ../../ccloud/replicator/executable-onprem-to-cloud-consumer-repro-avro.properties:/etc/kafka/executable-onprem-to-cloud-consumer-repro-avro.properties
- ../../ccloud/replicator/executable-onprem-to-cloud-producer-repro-avro.properties:/etc/kafka/executable-onprem-to-cloud-producer-repro-avro.properties
- ../../ccloud/replicator/executable-onprem-to-cloud-replicator-repro-avro-topicrecordnamestrategy.properties:/etc/kafka/executable-onprem-to-cloud-replicator-repro-avro.properties
environment:
CONNECT_PLUGIN_PATH: /usr/share/confluent-hub-components/confluentinc-kafka-connect-s3 # this is not used but decrease test time
entrypoint: ["sh", "-c", "sleep 2073600"]
producer-onprem:
build:
context: ../../ccloud/replicator/producer-onprem/
args:
TAG: ${TAG}
CP_BASE_IMAGE: ${CP_BASE_IMAGE}
KAFKA_CLIENT_TAG: ${KAFKA_CLIENT_TAG}
hostname: producer-onprem
container_name: producer-onprem
depends_on:
- zookeeper
- broker
- schema-registry
producer-cloud:
build:
context: ../../ccloud/replicator/producer-cloud/
args:
TAG: ${TAG}
CP_BASE_IMAGE: ${CP_BASE_IMAGE}
KAFKA_CLIENT_TAG: ${KAFKA_CLIENT_TAG}
hostname: producer-cloud
container_name: producer-cloud
depends_on:
- zookeeper
- broker
- schema-registry