kafka/docker/examples/jvm/single-node/file-input/docker-compose.yml

38 lines
1.5 KiB
YAML

# 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:
image: apache/kafka:latest
hostname: broker
container_name: broker
ports:
- "9092:9092"
- "9093:9093"
volumes:
- ../../../fixtures/secrets:/etc/kafka/secrets
- ../../../fixtures/file-input:/mnt/shared/config
environment:
# Environment variables used by kafka scripts will be needed in case of File input.
CLUSTER_ID: '4L6g3nShT-eMCtK--X86sw'
# Set properties not provided in the file input
KAFKA_NODE_ID: 1
KAFKA_CONTROLLER_QUORUM_VOTERS: '1@broker:29093'
KAFKA_LISTENERS: 'PLAINTEXT_HOST://:9092,SSL://:9093,CONTROLLER://:29093,PLAINTEXT://:19092'
# Override an existing property
KAFKA_PROCESS_ROLES: 'broker,controller'