This commit is contained in:
孙小云 2025-06-06 15:21:39 +08:00
parent b52e27eb13
commit b5787679fb
1 changed files with 2 additions and 0 deletions

View File

@ -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 \