2018-12-27 15:55:51 +00:00
|
|
|
version: '2.2'
|
2018-07-18 05:22:01 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
kafka_zookeeper:
|
|
|
|
image: zookeeper:3.4.9
|
|
|
|
hostname: kafka_zookeeper
|
|
|
|
environment:
|
|
|
|
ZOO_MY_ID: 1
|
|
|
|
ZOO_PORT: 2181
|
|
|
|
ZOO_SERVERS: server.1=kafka_zookeeper:2888:3888
|
2019-02-08 14:20:25 +00:00
|
|
|
security_opt:
|
|
|
|
- label:disable
|
2018-07-18 05:22:01 +00:00
|
|
|
|
|
|
|
kafka1:
|
2019-04-18 15:52:18 +00:00
|
|
|
image: confluentinc/cp-kafka:5.2.0
|
2018-07-18 05:22:01 +00:00
|
|
|
hostname: kafka1
|
|
|
|
ports:
|
2019-03-29 13:53:00 +00:00
|
|
|
- "9092:9092"
|
2018-07-18 05:22:01 +00:00
|
|
|
environment:
|
2019-03-29 13:53:00 +00:00
|
|
|
KAFKA_ADVERTISED_LISTENERS: INSIDE://localhost:9092,OUTSIDE://kafka1:19092
|
|
|
|
KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://:19092
|
|
|
|
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
|
|
|
|
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
|
|
|
|
KAFKA_BROKER_ID: 1
|
|
|
|
KAFKA_ZOOKEEPER_CONNECT: "kafka_zookeeper:2181"
|
|
|
|
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
|
|
|
|
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
2018-07-18 05:22:01 +00:00
|
|
|
depends_on:
|
2019-03-29 13:53:00 +00:00
|
|
|
- kafka_zookeeper
|
2019-02-08 14:20:25 +00:00
|
|
|
security_opt:
|
2019-03-29 13:53:00 +00:00
|
|
|
- label:disable
|