Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 568 Bytes

File metadata and controls

16 lines (12 loc) · 568 Bytes

13 - Kafka Topic

The kafka-topic provisioner ensures that there is a Kafka topic with 3 partitions available in Docker.

See score.yaml as an example. This app launches a Redpanda Console configured for the given Kafka broker. A Score dns and route resource are used to expose it locally outside of Docker.

This provisioner also supports an annotation for exposing the broker port for access from outside Docker:

resources:
  bus:
    type: kafka-topic
    metadata:
      annotations:
        "compose.score.dev/publish-port": "9092"