$ yum update
$ yum -y install docker
$ curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose
$ git clone https://github.com/wurstmeister/kafka-docker.git
...
zookeeper:
...
envirionment:
...
ZOOKEEPER_SERVER_ID: {id}
ZOOKEEPER_SERVERS: {zookeeper1 ip}:2888:3888, {zookeeper2 ip}:2888:3888 ...
...
kafka:
...
envirionment:
...
KAFKA_BROKER_ID: {id}
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://{호스트 ip}:9092
KAFKA_CREATE_TOPICS: "{Topic 이름}:{Partiton 갯수}:{Replication factor}"
KAFKA_ZOOKEEPER_CONNECT: {zookeeper1 ip}:2181, {zookeeper2 ip}:2181
...
$ systemctl start docker.service
$ docker-compose up