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 \