Giter Club home page Giter Club logo

docker-kafka's Introduction

Kafka image.

Maintainers

To trigger a build, run:

curl -X POST https://registry.hub.docker.com/u/appcelerator/kafka/trigger/cc9bca73-f7b3-48db-9c2d-754bf430201b/

Finally, verify that the image was built successfully on the Build Details page.

Tags

  • 0.9, 0.9.0, 0.9.0.1, latest

Exposed ports

  • 9092

Env. variables

  • ZOOKEEPER_CONNECT: Zookeeper nodes connection string, default localhost:2181
  • BROKER_IP: if not defined (in docker-compose for instance), use CONSUL to get the right id in Consul kv.
  • CONSUL: for containerPilot, format ConsulIp:consulPort, if not exist then containerPolot if not used
  • TOPIC_LIST: list of the topics needed to be created at Kafka statup format: "name1 name2 name3 ..."

sample with Docker compose: consul, zookeeper, kafka

Consul UI available at:   http://localhost:8500/ui
Kafka UI available at:    http://localhost
Using this docker-compose file, it's possible to scale kafka, just verify in Consul that zookeper is ready before scaling Kafka.



version: '2'
services:
  consul:
    image: progrium/consul
    ports:
     - "8500:8500"
     - "8400:8400"
     - "8600:53/udp"
    command: "-server -bootstrap -ui-dir /ui"
  zookeeper:
    image: appcelerator/zookeeper:latest
    ports:
     - "2181:2181"
     - "2888:2888"
     - "3888:3888"
    environment:
     - CONSUL=consul:8500
    depends_on:
     - consul
  kafka:
    image: appcelerator/kafka:latest
    ports:
     - "9092"
    environment:
     - ZOOKEEPER_CONNECT=zookeeper:2181
     - CONSUL=consul:8500
    depends_on:
     - zookeeper
  kafka-manager:
    image: sheepkiller/kafka-manager
    ports:
     - "80:9000"
    environment:
     - ZK_HOSTS=zookeeper:2181
     - CONSUL=consul:8500
    depends_on:
     - zookeeper

sample with 3 Kafka nodes and 3 zookeeper nodes: zookeeper1, zookeeper2, zookeeper3, without containerPilot

$ZOOKZEEPER_CONNECT="zookeper1:2181,zookeeper2:2181,zookeeper3:2181"


docker run -d --name=kafka1 \
  -p 9092:9092 \
  -e "ZOOKEEPER_CONNECT=$ZOOKEEPER_CONNECT" \
  -e "BROKER_ID=1" \
  appcelerator/kafka:latest


docker run -d --name=kafka2 \
  -p 9092:9092 \
  -e "ZOOKEEPER_CONNECT=$ZOOKEEPER_CONNECT" \
  -e "BROKER_ID=2" \
  appcelerator/kafka:latest


docker run -d --name=kafka3 \
  -p 9092:9092 \
  -e "ZOOKEEPER_CONNECT=$ZOOKEEPER_CONNECT" \
  -e "BROKER_ID=3" \
  appcelerator/kafka:latest

docker-kafka's People

Contributors

freignat91 avatar jdavanne avatar subfuzion avatar

Watchers

 avatar  avatar

Forkers

dkatona

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.