--- version: '2' services: kafcat-zookeeper: image: confluentinc/cp-zookeeper:6.1.0 hostname: kafcat-zookeeper container_name: kafcat-zookeeper ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 kafcat-broker: image: confluentinc/cp-kafka:6.1.0 hostname: kafcat-broker container_name: kafcat-broker depends_on: - kafcat-zookeeper ports: - "9092:9092" environment: KAFKA_BROKER_ID: 1 KAFKA_ZOOKEEPER_CONNECT: 'kafcat-zookeeper:2181' KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafcat-broker:9092 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1 KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1 KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0