add docker config files

This commit is contained in:
2025-10-28 18:23:50 +08:00
commit d90614805b
59 changed files with 1701 additions and 0 deletions

48
docker/redis/redis.conf Normal file
View File

@@ -0,0 +1,48 @@
# Redis 配置文件
# 绑定地址(允许所有连接)
bind 0.0.0.0
# 端口
port 6379
# 密码认证
requirepass luckyshop123!@#
# 持久化设置
save 900 1
save 300 10
save 60 10000
# 数据存储目录
dir /data
# 日志级别
loglevel notice
# 日志文件
logfile ""
# 数据库数量
databases 16
# 最大内存限制
maxmemory 256mb
maxmemory-policy allkeys-lru
# 连接超时
timeout 0
# TCP keepalive
tcp-keepalive 300
# 保护模式Docker 中关闭)
protected-mode no
# 后台运行
daemonize no
# 客户端输出缓冲区限制
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60