Created
February 2, 2022 05:45
-
-
Save pastuhov/8050a3c7b425c0c1b5bd47cb8291fa1e to your computer and use it in GitHub Desktop.
kafka + schema-registry + akhq
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.6' | |
volumes: | |
zookeeper-data-0: | |
driver: local | |
zookeeper-log-0: | |
driver: local | |
kafka-data-0: | |
driver: local | |
services: | |
akhq: | |
image: tchiotludo/akhq:0.20.0 | |
environment: | |
AKHQ_CONFIGURATION: | | |
akhq: | |
connections: | |
docker-kafka-server-1: | |
properties: | |
bootstrap.servers: "kafka-0:29092" | |
schema-registry: | |
url: "http://schema-registry-0:8085" | |
ports: | |
- 8080:8080 | |
links: | |
- kafka-0 | |
- schema-registry-0 | |
zookeeper-0: | |
image: confluentinc/cp-zookeeper | |
volumes: | |
- zookeeper-data-0:/var/lib/zookeeper/data:Z | |
- zookeeper-log-0:/var/lib/zookeeper/log:Z | |
environment: | |
ZOOKEEPER_CLIENT_PORT: '2181' | |
ZOOKEEPER_ADMIN_ENABLE_SERVER: 'false' | |
kafka-0: | |
image: confluentinc/cp-kafka | |
volumes: | |
- kafka-data-0:/var/lib/kafka:Z | |
ports: | |
- 9092:9092 | |
environment: | |
KAFKA_BROKER_ID: '0' | |
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper-0:2181' | |
KAFKA_NUM_PARTITIONS: '12' | |
KAFKA_COMPRESSION_TYPE: 'gzip' | |
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: '1' | |
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: '1' | |
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: '1' | |
KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false' | |
KAFKA_JMX_PORT: '9091' | |
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' | |
KAFKA_AUTHORIZER_CLASS_NAME: 'kafka.security.authorizer.AclAuthorizer' | |
KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: 'true' | |
KAFKA_LISTENERS: 'INTERNAL://kafka-0:29092,OUTSIDE://kafka-0:9092' | |
KAFKA_ADVERTISED_LISTENERS: 'INTERNAL://kafka-0:29092,OUTSIDE://localhost:9092' | |
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT' | |
KAFKA_INTER_BROKER_LISTENER_NAME: 'INTERNAL' | |
links: | |
- zookeeper-0 | |
schema-registry-0: | |
image: confluentinc/cp-schema-registry | |
ports: | |
- 8085:8085 | |
depends_on: | |
- kafka-0 | |
environment: | |
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'PLAINTEXT://kafka-0:29092' | |
SCHEMA_REGISTRY_HOST_NAME: 'schema-registry-0' | |
SCHEMA_REGISTRY_LISTENERS: 'http://schema-registry-0:8085' | |
SCHEMA_REGISTRY_LOG4J_ROOT_LOGLEVEL: 'INFO' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment