From b5787679fb7aca183e9f458b36d3c5a0c18b5eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Fri, 6 Jun 2025 15:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init/6.kafka.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/6.kafka.sh b/init/6.kafka.sh index 0a621f6..840f921 100755 --- a/init/6.kafka.sh +++ b/init/6.kafka.sh @@ -57,6 +57,8 @@ docker run -d \ -e KAFKA_CFG_LOG_RETENTION_HOURS=168 \ -e KAFKA_CFG_LOG_RETENTION_BYTES=-1 \ -e KAFKA_CFG_DELETE_TOPIC_ENABLE=true \ +--env TZ=Asia/Shanghai \ +--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ --mount type=volume,source=${KAFKA_DATA},target=/bitnami/kafka \ --memory ${KAFKA_MEMORY} \ --restart unless-stopped \