I am trying to set up docker-compose setup with
- Kafka broker
- zookeper
- debezium kafka connector
- schema-registry
using
- confluen kafka image
- debezium/connect:1.4
- confluent cp-schema-registry
Schema registry keeps giving error
... connection to node -1 (localhost/127.0.0.1:29092) could not be established...
Obviously trying to connect to localhost, but Kafka broker is in its own container in docker-compose setup.
I just cannot find any examples or documentation how to configure schema-registry.
All examples use config like:
schema-registry:
image: confluentinc/cp-schema-registry:5.5.3
environment:
- SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=zookeeper:2181
- SCHEMA_REGISTRY_HOST_NAME=schema-registry
- SCHEMA_REGISTRY_LISTENERS=http://schema-registry:8081,http://localhost:8081
ports:
- 8081:8081
depends_on: [zookeeper, kafka]
ERROR Server died unexpectedly: (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain) on kafkastore.bootrap.servers ...
schemaregisty.rest ???