Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jrottenberg/kafka-standalone
https://github.com/jrottenberg/kafka-standalone
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jrottenberg/kafka-standalone
- Owner: jrottenberg
- Created: 2015-09-10T02:03:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-28T05:17:13.000Z (almost 9 years ago)
- Last Synced: 2024-10-29T15:12:55.008Z (3 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Kafka standalone
================Based on [Kafka docker](https://hub.docker.com/r/ches/kafka/).
Intent
------Intent was to keep it as simple as possible, just to let developer easily interact with kafka without the need to run docker-compose.
It's not following docker best practices (one service per container), but it allow to get you up and running with one container.
### Passing topic
You can pass a topic at container creation by passing the environment variable TOPIC
```
docker run -it -e TOPIC=mine jrottenberg/kafka-standalone
```### Passing advertised host name
You can specify the passing the environment variable TOPIC
```
docker run -d -e ADVERTISED_HOSTNAME=$(hostname -f) -p 9092:9092 -p 2181:2181 jrottenberg/kafka-standalone
```Production use
--------------Just don't ;-)