aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker-kafka-persistent/Dockerfile1
-rw-r--r--docker-kafka-persistent/config/server.properties2
2 files changed, 1 insertions, 2 deletions
diff --git a/docker-kafka-persistent/Dockerfile b/docker-kafka-persistent/Dockerfile
index d256e37..725c1ef 100644
--- a/docker-kafka-persistent/Dockerfile
+++ b/docker-kafka-persistent/Dockerfile
@@ -16,5 +16,4 @@ ENTRYPOINT ["bin/kafka-server-start.sh"]
ADD config/server.properties config/
-RUN sed -i 's/zookeeper.connect=localhost:2181/zookeeper.connect=zookeeper:2181/' config/server.properties
CMD ["config/server.properties"]
diff --git a/docker-kafka-persistent/config/server.properties b/docker-kafka-persistent/config/server.properties
index f00a7d6..2f047c0 100644
--- a/docker-kafka-persistent/config/server.properties
+++ b/docker-kafka-persistent/config/server.properties
@@ -113,7 +113,7 @@ log.retention.check.interval.ms=300000
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
# You can also append an optional chroot string to the urls to specify the
# root directory for all kafka znodes.
-zookeeper.connect=localhost:2181
+zookeeper.connect=zookeeper:2181
# Timeout in ms for connecting to zookeeper
zookeeper.connection.timeout.ms=6000