Skip to content

Commit

Permalink
- Confluent's Kafka.
Browse files Browse the repository at this point in the history
issue #?
  • Loading branch information
albamig committed Apr 13, 2022
1 parent 46adf30 commit 9ccc708
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions project/broker/kafka/deploy/docker-compose/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ def build_docker_compose(path: Path) -> str:

kafka_container = {
"restart": "always",
"image": "wurstmeister/kafka:latest",
"image": "confluentinc/cp-kafka:latest",
"ports": ["9092"],
"depends_on": ["zookeeper"],
"volumes": ["kafka:/kafka/kafka-logs"],
"environment": {
"KAFKA_LOG_DIRS": "/kafka/kafka-logs",
"KAFKA_DELETE_TOPIC_ENABLE": "true",
"KAFKA_BROKER_ID": 1,
"KAFKA_ZOOKEEPER_CONNECT": "zookeeper:2181",
"KAFKA_ADVERTISED_HOST_NAME": "kafka",
"KAFKA_ADVERTISED_LISTENERS": "PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092",
"KAFKA_LISTENER_SECURITY_PROTOCOL_MAP": "PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT",
"KAFKA_INTER_BROKER_LISTENER_NAME": "PLAINTEXT",
"KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR": 1,
},
}

Expand Down

0 comments on commit 9ccc708

Please sign in to comment.