chore: Update Kafka Port

This commit is contained in:
wanghe-fit2cloud 2023-11-02 16:40:36 +08:00
parent e75f8426a7
commit 1f8295b48b
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
additionalProperties:
formFields:
- default: 9092
envKey: KAFKA_PORT
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: TCP 端口
required: true

View File

@ -14,14 +14,14 @@ services:
KAFKA_CFG_NODE_ID: 0
KAFKA_CFG_PROCESS_ROLES: controller,broker
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://${CONTAINER_NAME}:${KAFKA_PORT}
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
networks:
- 1panel-network
ports:
- "${KAFKA_PORT}:9092"
- "${PANEL_APP_PORT_HTTP}:9092"
image: bitnami/kafka:3.6.0
labels:
createdBy: "Apps"