Skip to content

antlypls/docker-kafka

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Kafka in Docker

Apache Kafka is a distributed streaming platform.

This repo is based on some examples found on the Internet that I can't find origin of anymore.

How to Run

The man purpuse of this image is to be used as a part of development/test setup using Docker.

Following setting can be provided using env variables:

  • KAFKA_CREATE_TOPICS — topics to create on startup: name:partitions:replication_factor, e.g. data:1:1.
  • KAFKA_ZOOKEEPER_CONNECT — connection string for the zookeeper.

You can run this container with docker-compose using following docker-compose.yml file as an example:

version: '3'

services:
  zookeeper:
    image: antlypls/zookeeper
    ports:
      - "2181:2181"

  kafka:
    image: antlypls/kafka
    ports:
      - "9092:9092"
    depends_on:
      - zookeeper
    environment:
      KAFKA_CREATE_TOPICS: "data:1:1"
      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181

How to Build from Source

docker build -t antlypls/kafka .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages