Şöyle yaparız
version: '2'services:zookeeper:image: confluentinc/cp-zookeeper:5.1.2environment:ZOOKEEPER_CLIENT_PORT: 2181ZOOKEEPER_TICK_TIME: 2000kafka:image: confluentinc/cp-kafka:5.1.2depends_on:- zookeeperports:- 9092:9092environment:KAFKA_BROKER_ID: 1KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1schema-registry:image: confluentinc/cp-schema-registry:5.1.2hostname: schema-registryports:- 8081:8081depends_on:- zookeeper- kafkaenvironment:SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9092SCHEMA_REGISTRY_HOST_NAME: schema-registrySCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081ksql-server:image: confluentinc/cp-ksql-server:5.1.2depends_on:- kafka- schema-registryenvironment:KSQL_BOOTSTRAP_SERVERS: kafka:9092KSQL_LISTENERS: http://0.0.0.0:8088KSQL_KSQL_SCHEMA_REGISTRY_URL: http://schema-registry:8081KSQL_KSQL_SERVICE_ID: ksql-server
Şöyle yaparız
docker run — network postgres-kafka-demo_default— interactive — tty — rm confluentinc/cp-ksql-cli:latest http://ksql-server:8088 # To see your updates, a few settings need to be configured by first running: set ‘commit.interval.ms’=’2000'; set ‘cache.max.bytes.buffering’=’10000000'; set ‘auto.offset.reset’=’earliest’;
No comments:
Post a Comment