appstore-1panel/apps/kafka/3.7.0/docker-compose.yml

32 lines
1.1 KiB
YAML
Raw Normal View History

version: '3'
services:
kafka:
container_name: ${CONTAINER_NAME}
restart: always
environment:
ALLOW_PLAINTEXT_LISTENER: 'yes'
KAFKA_CFG_LOG_RETENTION_MS: 60000
KAFKA_CFG_MAX_REQUEST_SIZE: 524288000
KAFKA_CFG_MESSAGE_MAX_BYTES: 524288000
KAFKA_CFG_REPLICA_FETCH_MAX_BYTES: 524288000
KAFKA_CFG_FETCH_MESSAGE_MAX_BYTES: 524288000
KAFKA_CFG_PARTITION_FETCH_BYTES: 524288000
KAFKA_CFG_NODE_ID: 0
KAFKA_CFG_PROCESS_ROLES: controller,broker
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
2023-11-02 16:40:36 +08:00
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://${CONTAINER_NAME}:${PANEL_APP_PORT_HTTP}
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@127.0.0.1:9093
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_HEAP_OPTS: '-Xmx512m -Xms256m'
networks:
- 1panel-network
ports:
2023-11-02 16:40:36 +08:00
- "${PANEL_APP_PORT_HTTP}:9092"
image: bitnami/kafka:3.7.0
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true