2023-12-12 12:59:05 +08:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership.
|
|
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
# (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
---
|
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
broker:
|
2024-06-16 16:31:13 +08:00
|
|
|
image: ${IMAGE}
|
2023-12-12 12:59:05 +08:00
|
|
|
hostname: broker
|
|
|
|
container_name: broker
|
|
|
|
ports:
|
|
|
|
- '9093:9093'
|
|
|
|
volumes:
|
|
|
|
- ../../../fixtures/secrets:/etc/kafka/secrets
|
|
|
|
environment:
|
|
|
|
KAFKA_NODE_ID: 1
|
|
|
|
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'SSL:SSL,CONTROLLER:PLAINTEXT,SSL-INTERNAL:SSL'
|
|
|
|
KAFKA_ADVERTISED_LISTENERS: 'SSL://localhost:9093,SSL-INTERNAL://broker:19093'
|
|
|
|
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
|
|
|
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
|
|
|
|
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
|
|
|
|
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
|
2025-02-14 20:26:18 +08:00
|
|
|
KAFKA_SHARE_COORDINATOR_STATE_TOPIC_REPLICATION_FACTOR: 1
|
|
|
|
KAFKA_SHARE_COORDINATOR_STATE_TOPIC_MIN_ISR: 1
|
2023-12-12 12:59:05 +08:00
|
|
|
KAFKA_PROCESS_ROLES: 'broker,controller'
|
|
|
|
KAFKA_CONTROLLER_QUORUM_VOTERS: '1@broker:29093'
|
|
|
|
KAFKA_LISTENERS: 'SSL://:9093,CONTROLLER://:29093,SSL-INTERNAL://:19093'
|
|
|
|
KAFKA_INTER_BROKER_LISTENER_NAME: 'SSL-INTERNAL'
|
|
|
|
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
|
|
|
|
KAFKA_LOG_DIRS: '/tmp/kraft-combined-logs'
|
|
|
|
CLUSTER_ID: '4L6g3nShT-eMCtK--X86sw'
|
|
|
|
KAFKA_SSL_KEYSTORE_FILENAME: 'kafka01.keystore.jks'
|
|
|
|
KAFKA_SSL_KEYSTORE_CREDENTIALS: 'kafka_keystore_creds'
|
|
|
|
KAFKA_SSL_KEY_CREDENTIALS: 'kafka_ssl_key_creds'
|
|
|
|
KAFKA_SSL_TRUSTSTORE_FILENAME: 'kafka.truststore.jks'
|
|
|
|
KAFKA_SSL_TRUSTSTORE_CREDENTIALS: 'kafka_truststore_creds'
|
|
|
|
KAFKA_SSL_CLIENT_AUTH: 'required'
|
|
|
|
KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM: ""
|