Skip to content

Commit

Permalink
kafka docker-compose.yaml fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed Sep 4, 2024
1 parent 76b3348 commit 1344d23
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ services:
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: "0@kafka0:9093,1@kafka1:9093,2@kafka2:9093"
KAFKA_CFG_NODE_ID: 0
ALLOW_PLAINTEXT_LISTENER: "yes"
# Required for high availability
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR: 2
volumes: &volumes
- type: tmpfs
target: /bitnami/kafka
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ services:
KAFKA_CFG_NODE_ID: 0
KAFKA_CFG_BROKER_RACK: "rack1"
ALLOW_PLAINTEXT_LISTENER: "yes"
# Required for high availability
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR: 2
volumes: &volumes
- type: tmpfs
target: /bitnami/kafka
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ services:
KAFKA_TLS_CLIENT_AUTH: required
KAFKA_CFG_AUTHORIZER_CLASS_NAME: "org.apache.kafka.metadata.authorizer.StandardAuthorizer"
KAFKA_CFG_SUPER_USERS: "User:O=ShotoverTestCertificate,CN=Generic-Cert"
# Required for high availability
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR: 2
volumes: &volumes
- type: tmpfs
target: /bitnami/kafka
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ services:
KAFKA_CLIENT_PASSWORDS: "password"
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: "CONTROLLER"
KAFKA_CFG_SASL_MECHANISM_CONTROLLER_PROTOCOL: "PLAIN"
KAFKA_CONTROLLER_USER: "controller_user"
KAFKA_CONTROLLER_PASSWORD: "controller_password"
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: "BROKER"
KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL: "PLAIN"
KAFKA_INTER_BROKER_USER: "controller_user"
KAFKA_INTER_BROKER_PASSWORD: "controller_password"
KAFKA_CERTIFICATE_PASSWORD: "123456"
KAFKA_KRAFT_CLUSTER_ID: "abcdefghijklmnopqrstuv"
# Required for high availability
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR: 2
volumes: &volumes
- type: tmpfs
target: /bitnami/kafka
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ services:
KAFKA_CFG_SASL_MECHANISM_CONTROLLER_PROTOCOL: "PLAIN"
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: "BROKER"
KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL: "SCRAM-SHA-256"
KAFKA_INTER_BROKER_USER: "controller_user"
KAFKA_INTER_BROKER_PASSWORD: "controller_password"
KAFKA_INTER_BROKER_USER: "super_user"
KAFKA_INTER_BROKER_PASSWORD: "super_password"
KAFKA_CERTIFICATE_PASSWORD: "password"
KAFKA_KRAFT_CLUSTER_ID: "abcdefghijklmnopqrstuv"
KAFKA_TLS_CLIENT_AUTH: required
Expand All @@ -38,6 +38,10 @@ services:
# * the user named `user`
# * any clients connected via a TLS certificate of `O=ShotoverTestCertificate,CN=Generic-Cert`
KAFKA_CFG_SUPER_USERS: "User:super_user;User:O=ShotoverTestCertificate,CN=Generic-Cert"
# Required for high availability
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR: 2
volumes: &volumes
- type: tmpfs
target: /bitnami/kafka
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ services:
KAFKA_CLIENT_PASSWORDS: "password"
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: "CONTROLLER"
KAFKA_CFG_SASL_MECHANISM_CONTROLLER_PROTOCOL: "PLAIN"
KAFKA_CONTROLLER_USER: "controller_user"
KAFKA_CONTROLLER_PASSWORD: "controller_password"
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: "BROKER"
KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL: "SCRAM-SHA-256"
KAFKA_INTER_BROKER_USER: "controller_user"
KAFKA_INTER_BROKER_PASSWORD: "controller_password"
KAFKA_CERTIFICATE_PASSWORD: "123456"
KAFKA_KRAFT_CLUSTER_ID: "abcdefghijklmnopqrstuv"
# Required for high availability
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR: 2
volumes: &volumes
- type: tmpfs
target: /bitnami/kafka
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ services:
KAFKA_CFG_NODE_ID: 0
KAFKA_CERTIFICATE_PASSWORD: password
KAFKA_TLS_CLIENT_AUTH: none
# Required for high availability
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3
KAFKA_CFG_TRANSACTION_STATE_LOG_MIN_ISR: 2
volumes: &volumes
- type: tmpfs
target: /bitnami/kafka
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ services:
- KAFKA_CLIENT_PASSWORDS=password
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_SASL_MECHANISM_CONTROLLER_PROTOCOL=PLAIN
- KAFKA_CONTROLLER_USER=controller_user
- KAFKA_CONTROLLER_PASSWORD=controller_password
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=BROKER
- KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL=PLAIN
- KAFKA_INTER_BROKER_USER=controller_user
- KAFKA_INTER_BROKER_PASSWORD=controller_password
volumes:
- type: tmpfs
target: /bitnami/kafka
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ services:
- KAFKA_CLIENT_USERS=user
- KAFKA_CLIENT_PASSWORDS=password
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CONTROLLER_USER=controller_user
- KAFKA_CONTROLLER_PASSWORD=controller_password
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=BROKER
- KAFKA_CFG_SASL_MECHANISM_CONTROLLER_PROTOCOL=PLAIN
- KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL=SCRAM-SHA-256
- KAFKA_INTER_BROKER_USER=controller_user
- KAFKA_INTER_BROKER_PASSWORD=controller_password
volumes:
- type: tmpfs
target: /bitnami/kafka
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ services:
- KAFKA_CLIENT_USERS=user
- KAFKA_CLIENT_PASSWORDS=password
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CONTROLLER_USER=controller_user
- KAFKA_CONTROLLER_PASSWORD=controller_password
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=BROKER
- KAFKA_CFG_SASL_MECHANISM_CONTROLLER_PROTOCOL=PLAIN
- KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL=SCRAM-SHA-256
- KAFKA_INTER_BROKER_USER=controller_user
- KAFKA_INTER_BROKER_PASSWORD=controller_password
- KAFKA_CERTIFICATE_PASSWORD=password
- KAFKA_TLS_CLIENT_AUTH=none
volumes:
Expand Down

0 comments on commit 1344d23

Please sign in to comment.