From 8cf61a7a738cdb9c24644cd6bd045d61d8897cbe Mon Sep 17 00:00:00 2001 From: Marcos Gomes-Borges Date: Thu, 18 Jun 2020 08:58:06 +0200 Subject: [PATCH 1/2] Add Docker image tag to avoid redownload id --- docker-compose-single-broker.yml | 1 + docker-compose.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/docker-compose-single-broker.yml b/docker-compose-single-broker.yml index 4d8e9f51..f90de5c1 100644 --- a/docker-compose-single-broker.yml +++ b/docker-compose-single-broker.yml @@ -5,6 +5,7 @@ services: ports: - "2181:2181" kafka: + image: wurstmeister/kafka build: . ports: - "9092:9092" diff --git a/docker-compose.yml b/docker-compose.yml index 04b82c37..5f9c52e7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ services: ports: - "2181:2181" kafka: + image: wurstmeister/kafka build: . ports: - "9092" From f036b7499481a66f3a6e5ca019fdaea712a7d62b Mon Sep 17 00:00:00 2001 From: Marcos Gomes-Borges Date: Thu, 18 Jun 2020 09:10:44 +0200 Subject: [PATCH 2/2] Update docker-compose usage --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26da2160..4f746ce0 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,9 @@ Add more brokers: - ```docker-compose scale kafka=3``` -Destroy a cluster: +Stop Kafka cluster and clean up everything -- ```docker-compose stop``` +- ```docker-compose down --volumes``` ## Note