services: zookeeper: image: confluentinc/cp-zookeeper:3.3.1 network_mode: host environment: ZOOKEEPER_CLIENT_PORT: 32181 ZOOKEEPER_TICK_TIME: 2000 kafka: image: confluentinc/cp-kafka:3.3.1 network_mode: host ports: - "9092:9092" depends_on: - zookeeper environment: KAFKA_BROKER_ID: 1 KAFKA_ZOOKEEPER_CONNECT: localhost:32181 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 schema-registry: image: confluentinc/cp-schema-registry:3.3.1 network_mode: host depends_on: - zookeeper - kafka environment: SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: localhost:32181 SCHEMA_REGISTRY_HOST_NAME: localhost SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081 kafka-streams: build: . depends_on: - kafka - schema-registry environment: bootstrap.servers: localhost:9092 schema.registry.url: http://localhost:8081 application.id: streams-app