Created
October 9, 2017 16:11
-
-
Save andrewrjones/688c2745161f83c1ac6e43c6da669ddf to your computer and use it in GitHub Desktop.
Bring up Kafka, Debezium, and Schema Registry
This file contains hidden or 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: debezium/zookeeper:${DEBEZIUM_VERSION} | |
| ports: | |
| - 2181:2181 | |
| - 2888:2888 | |
| - 3888:3888 | |
| kafka: | |
| image: debezium/kafka:${DEBEZIUM_VERSION} | |
| ports: | |
| - 9092:9092 | |
| links: | |
| - zookeeper | |
| environment: | |
| - ZOOKEEPER_CONNECT=zookeeper:2181 | |
| postgres: | |
| image: debezium/postgres | |
| ports: | |
| - 5432:5432 | |
| environment: | |
| - POSTGRES_USER=postgres | |
| - POSTGRES_PASSWORD=postgres | |
| connect: | |
| image: debezium/connect:${DEBEZIUM_VERSION} | |
| ports: | |
| - 8083:8083 | |
| links: | |
| - kafka | |
| - postgres | |
| - registry | |
| environment: | |
| - BOOTSTRAP_SERVERS=kafka:9092 | |
| - GROUP_ID=1 | |
| - CONFIG_STORAGE_TOPIC=my_connect_configs | |
| - OFFSET_STORAGE_TOPIC=my_connect_offsets | |
| - KEY_CONVERTER=io.confluent.connect.avro.AvroConverter | |
| - VALUE_CONVERTER=io.confluent.connect.avro.AvroConverter | |
| - INTERNAL_KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter | |
| - INTERNAL_VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter | |
| - CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL=http://registry:8081 | |
| - CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL=http://registry:8081 | |
| registry: | |
| image: confluentinc/cp-schema-registry:3.3.0 | |
| ports: | |
| - 8081:8081 | |
| links: | |
| - kafka | |
| - zookeeper | |
| environment: | |
| - SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=zookeeper:2181 | |
| - SCHEMA_REGISTRY_HOST_NAME=registry | |
| - SCHEMA_REGISTRY_LISTENERS=http://registry:8081 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment