Code Monkey home page Code Monkey logo

Comments (6)

shankarshastri avatar shankarshastri commented on September 27, 2024 11
kafka:
  image: spotify/kafka
  ports:
  - "2181:2181"
  - "9092:9092"
  hostname: kafka
  container_name: kafka
  environment:
  - "ADVERTISED_HOST=kafka"
  - "ADVERTISED_PORT=9092"
  - "AUTO_CREATE_TOPICS=true"
  command: >
      bash -c
      "(sleep 15s &&
      /opt/kafka_2.11-0.10.1.0/bin/kafka-topics.sh
      --create
      --zookeeper
      localhost:2181 --replication-factor 1 --partitions 1
      --topic dummy_topic &) && (supervisord -n)"

@terrabl, you can do it like this.

from docker-kafka.

pugna0 avatar pugna0 commented on September 27, 2024

TOPICS env is for spotify/kafkaproxy image.

from docker-kafka.

Dusanlex avatar Dusanlex commented on September 27, 2024

Hi there, I have a question.
How can I create producer and consumer in "command" section like this topic was created?

from docker-kafka.

pravinsakthivel avatar pravinsakthivel commented on September 27, 2024

Hi there, I have a question.
How can I create producer and consumer in "command" section like this topic was created?
Refer below link:
https://gist.github.com/abacaphiliac/f0553548f9c577214d16290c2e751071

from docker-kafka.

jmayday avatar jmayday commented on September 27, 2024

AUTO_CREATE_TOPICS

Is this variable really needed? I've managed to get my topic created even without this variable. Could you please explain reason why we need it?

from docker-kafka.

pavanarya avatar pavanarya commented on September 27, 2024

I did a NuGet package update and that solved my issue

from docker-kafka.

Related Issues (20)

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.