Giriş
Image olarak
confluentinc/ksqldb-server
confluentinc/ksqldb-clikullanılır
Örnek
Şöyle yaparızversion: '2'services:zookeeper:image: confluentinc/cp-zookeeper:7.0.1hostname: zookeepercontainer_name: zookeeperports:- "2181:2181"environment:ZOOKEEPER_CLIENT_PORT: 2181ZOOKEEPER_TICK_TIME: 2000broker:image: confluentinc/cp-kafka:7.0.1hostname: brokercontainer_name: brokerdepends_on:- zookeeperports:- "29092:29092"environment:KAFKA_BROKER_ID: 1KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXTKAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9092,PLAINTEXT_HOST://localhost:29092KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1ksqldb-server:image: confluentinc/ksqldb-server:0.25.1hostname: ksqldb-servercontainer_name: ksqldb-serverdepends_on:- brokerports:- "8088:8088"environment:KSQL_LISTENERS: http://0.0.0.0:8088KSQL_BOOTSTRAP_SERVERS: broker:9092KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: "true"KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: "true"ksqldb-cli:image: confluentinc/ksqldb-cli:0.25.1container_name: ksqldb-clidepends_on:- broker- ksqldb-serverentrypoint: /bin/shtty: true
Hiç yorum yok:
Yorum Gönder