Created
March 9, 2017 17:21
-
-
Save jarheadjred/cd39ff7cbda47d772f7bc6b5d926863b to your computer and use it in GitHub Desktop.
copied from confluent kafka stack example. may modify for local dev connections
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 | |
hostname: zookeeper | |
ports: | |
- "2181:2181" | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_TICK_TIME: 2000 | |
broker: | |
image: confluentinc/cp-kafka | |
hostname: broker | |
depends_on: | |
- zookeeper | |
ports: | |
- '9092' | |
environment: | |
KAFKA_BROKER_ID: 1 | |
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181' | |
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://broker:9092' | |
schema_registry: | |
image: confluentinc/cp-schema-registry | |
hostname: schema_registry | |
depends_on: | |
- zookeeper | |
- broker | |
ports: | |
- '8081' | |
environment: | |
SCHEMA_REGISTRY_HOST_NAME: schema_registry | |
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181' | |
connect: | |
image: confluentinc/cp-kafka-connect | |
hostname: connect | |
depends_on: | |
- zookeeper | |
- broker | |
- schema_registry | |
ports: | |
- "8083:8083" | |
environment: | |
CONNECT_BOOTSTRAP_SERVERS: 'broker:9092' | |
CONNECT_REST_ADVERTISED_HOST_NAME: connect | |
CONNECT_REST_PORT: 8083 | |
CONNECT_GROUP_ID: compose-connect-group | |
CONNECT_CONFIG_STORAGE_TOPIC: docker-connect-configs | |
CONNECT_OFFSET_STORAGE_TOPIC: docker-connect-offsets | |
CONNECT_STATUS_STORAGE_TOPIC: docker-connect-status | |
CONNECT_KEY_CONVERTER: io.confluent.connect.avro.AvroConverter | |
CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL: 'http://schema_registry:8081' | |
CONNECT_VALUE_CONVERTER: io.confluent.connect.avro.AvroConverter | |
CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: 'http://schema_registry:8081' | |
CONNECT_INTERNAL_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter | |
CONNECT_INTERNAL_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter | |
CONNECT_ZOOKEEPER_CONNECT: 'zookeeper:2181' | |
control-center: | |
image: confluentinc/cp-enterprise-control-center | |
hostname: control-center | |
depends_on: | |
- zookeeper | |
- broker | |
- schema_registry | |
- connect | |
ports: | |
- "9021:9021" | |
environment: | |
CONTROL_CENTER_BOOTSTRAP_SERVERS: 'broker:9092' | |
CONTROL_CENTER_ZOOKEEPER_CONNECT: 'zookeeper:2181' | |
CONTROL_CENTER_CONNECT_CLUSTER: 'connect:8083' | |
CONTROL_CENTER_REPLICATION_FACTOR: 1 | |
CONTROL_CENTER_INTERNAL_TOPICS_PARTITIONS: 1 | |
CONTROL_CENTER_MONITORING_INTERCEPTOR_TOPIC_PARTITIONS: 1 | |
PORT: 9021 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment