Use CP 4.1.0 as version for requirements such as broker, schema registry, etc.
version: '2'
services:
zookeeper:
- image: confluentinc/cp-zookeeper:latest
+ image: confluentinc/cp-zookeeper:4.1.0
hostname: zookeeper
ports:
- '32181:32181'
@@ -13,7 +13,7 @@ services:
- "moby:127.0.0.1"
kafka:
- image: confluentinc/cp-enterprise-kafka:latest
+ image: confluentinc/cp-enterprise-kafka:4.1.0
hostname: kafka
ports:
- '9092:9092'
@@ -39,7 +39,7 @@ services:
- "moby:127.0.0.1"
schema-registry:
- image: confluentinc/cp-schema-registry:latest
+ image: confluentinc/cp-schema-registry:4.1.0
hostname: schema-registry
depends_on:
- zookeeper
@@ -55,7 +55,7 @@ services:
# This "container" is a workaround to pre-create topics for the Kafka Music application
# until we have a more elegant way to do that.
kafka-create-topics:
- image: confluentinc/cp-kafka:latest
+ image: confluentinc/cp-kafka:4.1.0
depends_on:
- kafka
hostname: kafka-create-topics
