Skip to content

Commit

Permalink
Merge pull request #625 from authorjapps/kafka_minor_changes
Browse files Browse the repository at this point in the history
PR - Simple Kafka compose without KSQL
  • Loading branch information
authorjapps authored Feb 13, 2024
2 parents 1b1a329 + 771386e commit 02e64af
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scenarioName": "Masked Secret path as step param",
"scenarioName": "Masked Secret path as step param - Reusable Secret or Bearer token",
"steps": [
{
"name": "get_balance_via_secret_token",
Expand Down
49 changes: 49 additions & 0 deletions docker/compose/kafka-schema-registry-m3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.5.1
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000

kafka:
image: confluentinc/cp-kafka:5.5.1
depends_on:
- zookeeper
ports:
- 9092:9092
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka: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

schema-registry:
image: confluentinc/cp-schema-registry:5.5.1
depends_on:
- kafka
- zookeeper
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
ports:
- "8081:8081"

rest-proxy:
image: confluentinc/cp-kafka-rest:5.5.1
depends_on:
- zookeeper
- kafka
- schema-registry
environment:
KAFKA_REST_HOST_NAME: rest-proxy
KAFKA_REST_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_REST_BOOTSTRAP_SERVERS: kafka:29092
KAFKA_REST_LISTENERS: http://0.0.0.0:8082
KAFKA_REST_SCHEMA_REGISTRY_URL: http://schema-registry:8081
ports:
- "8082:8082"

0 comments on commit 02e64af

Please sign in to comment.