diff --git a/docker-compose.yml b/docker-compose.yml index 81646569..6f39de5f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,18 +28,21 @@ services: - "--host-port=0.0.0.0:8793" zookeeper: - image: wurstmeister/zookeeper + image: bitnami/zookeeper:3.6.2 ports: - "2181:2181" + environment: + - ALLOW_ANONYMOUS_LOGIN=yes kafka: - image: wurstmeister/kafka + image: bitnami/kafka:2.7.0 depends_on: - zookeeper ports: - "9092:9092" environment: - KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 - KAFKA_ADVERTISED_HOST_NAME: localhost - volumes: - - /var/run/docker.sock:/var/run/docker.sock + - 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