2023-11-02 16:33:22 +08:00
|
|
|
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}
|
2023-11-02 16:33:22 +08:00
|
|
|
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
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
2023-11-02 16:40:36 +08:00
|
|
|
- "${PANEL_APP_PORT_HTTP}:9092"
|
2024-03-05 11:27:51 +08:00
|
|
|
image: bitnami/kafka:3.7.0
|
2023-11-02 16:33:22 +08:00
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|