Created
March 23, 2021 15:10
-
-
Save swist/ce862170aadf541271decbde95c38c01 to your computer and use it in GitHub Desktop.
KSQLDB with docker compose and JMX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '2' | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:6.1.0 | |
hostname: zookeeper | |
container_name: zookeeper | |
ports: | |
- '2181:2181' | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_TICK_TIME: 2000 | |
broker: | |
image: confluentinc/cp-kafka:6.1.0 | |
hostname: broker | |
container_name: broker | |
depends_on: | |
- zookeeper | |
ports: | |
- '29092:29092' | |
environment: | |
KAFKA_BROKER_ID: 1 | |
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181' | |
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | |
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9092,PLAINTEXT_HOST://localhost:29092 | |
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | |
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0 | |
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1 | |
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1 | |
ksqldb-server: | |
image: confluentinc/ksqldb-server:0.15.0 | |
hostname: ksqldb-server | |
container_name: ksqldb-server | |
depends_on: | |
- broker | |
ports: | |
- '8088:8088' | |
- '1099:1099' | |
environment: | |
KSQL_LISTENERS: 'http://0.0.0.0:8088' | |
KSQL_BOOTSTRAP_SERVERS: 'broker:9092' | |
KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: 'true' | |
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: 'true' | |
KSQL_KSQL_QUERY_PULL_METRICS_ENABLED: 'true' | |
KSQL_JMX_OPTS: > | |
-Djava.rmi.server.hostname=localhost | |
-Dcom.sun.management.jmxremote | |
-Dcom.sun.management.jmxremote.port=1099 | |
-Dcom.sun.management.jmxremote.authenticate=false | |
-Dcom.sun.management.jmxremote.ssl=false | |
-Dcom.sun.management.jmxremote.rmi.port=1099 | |
ksqldb-cli: | |
image: confluentinc/cp-ksqldb-cli:6.1.0 | |
container_name: ksqldb-cli | |
depends_on: | |
- broker | |
- ksqldb-server | |
entrypoint: /bin/sh | |
tty: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment