diff --git a/.gitignore b/.gitignore index 4a1ac7035..2dea31c13 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ target src/*.bk .idea +kafka/ +zookeeper/ diff --git a/docker-compose.yaml b/docker-compose.yaml index a20430ac6..8099707b0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -18,3 +18,7 @@ services: environment: - ZOOKEEPER_CLIENT_PORT=2181 ports: ["2181:2181"] + volumes: + - ./zookeeper/data:/var/lib/zookeeper/data + - ./zookeeper/log:/var/lib/zookeeper/log + - ./kafka/data:/var/lib/kafka/data