Skip to content

Instantly share code, notes, and snippets.

@lutogin
Forked from shabbirdwd53/docker-compose.yml
Created October 15, 2020 09:51
Show Gist options
  • Save lutogin/c0e666a8e839e3f42791e42fd4da5610 to your computer and use it in GitHub Desktop.
Save lutogin/c0e666a8e839e3f42791e42fd4da5610 to your computer and use it in GitHub Desktop.
Kakfa Server installation using Docker
version: "3"
services:
zookeeper:
image: 'bitnami/zookeeper:latest'
container_name: zookeeper
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: 'bitnami/kafka:latest'
container_name: kakfa
ports:
- '9092:9092'
environment:
- KAFKA_BROKER_ID=1
- KAFKA_LISTENERS=PLAINTEXT://:9092
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment