Update kafka image to use bitnami with kraft
version: "3.9"
services:
-
postgres:
image: docker.io/bitnami/postgresql:14
environment:
@@ -13,14 +12,22 @@ services:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
- retries: 5
+ retries: 10
kafka:
- image: docker.io/moeenz/docker-kafka-kraft:latest
+ image: docker.io/bitnami/kafka:3.3.1
ports:
- "9092:9092"
environment:
- - KRAFT_CONTAINER_HOST_NAME=localhost
+ - KAFKA_ENABLE_KRAFT=yes
+ - ALLOW_PLAINTEXT_LISTENER=yes
+ - KAFKA_CFG_BROKER_ID=1
+ - KAFKA_CFG_PROCESS_ROLES=broker,controller
+ - KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=1@127.0.0.1:9093
+ - KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
+ - KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
+ - KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
+ - KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
keycloak:
image: quay.io/keycloak/keycloak:19.0
