docker compose1 Docker Compose를 사용하여 Kafka 셋업하기 코드는 여기 참고 1개의 Zookeeper와 3개의 Kafka broker를 갖는 Cluster version: '3.6' services: zoo1: image: confluentinc/cp-zookeeper:6.2.1 container_name: cluster-zoo1 hostname: zoo1 ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_SERVER_ID: 1 ZOOKEEPER_SERVERS: zoo1:2888:3888 kafka1: image: confluentinc/cp-kafka:6.2.1 container_name: cluster-kafka1 hostname: kafka1 ports: - "9092:9092".. 2022. 1. 28. 이전 1 다음