Created
May 12, 2020 05:30
-
-
Save zorteran/faba6daabe6155176df91132c7c9bff1 to your computer and use it in GitHub Desktop.
Kafka + Zookeeper + ZtmStream Kafka Stream
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: '3.3' | |
services: | |
zookeeper: | |
image: 'bitnami/zookeeper:3' | |
ports: | |
- '2181:2181' | |
volumes: | |
- 'zookeeper_data:/bitnami' | |
environment: | |
- ALLOW_ANONYMOUS_LOGIN=yes | |
kafka: | |
image: 'bitnami/kafka:2' | |
ports: | |
- '9092:9092' | |
- '29092:29092' | |
volumes: | |
- 'kafka_data:/bitnami' | |
environment: | |
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 | |
- ALLOW_PLAINTEXT_LISTENER=yes | |
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,PLAINTEXT_HOST://:29092 | |
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | |
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092 | |
depends_on: | |
- zookeeper | |
ztm_kafka_streams: | |
image: "ztm_stream" | |
environment: | |
- APPLICATION_ID_CONFIG=awesome_overrided_ztm_stream_app_id | |
- BOOTSTRAP_SERVERS_CONFIG=kafka:9092 | |
depends_on: | |
- kafka | |
volumes: | |
zookeeper_data: | |
driver: local | |
kafka_data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment