36 lines
No EOL
903 B
Text
36 lines
No EOL
903 B
Text
# ============================================================================
|
|
# didiCache Environment Configuration
|
|
# ============================================================================
|
|
# Copy this file to .env and update with your values
|
|
|
|
# Docker Compose Project Name (groups containers in Docker Desktop)
|
|
COMPOSE_PROJECT_NAME=didibackend_datalayer
|
|
|
|
# Redis Configuration
|
|
REDIS_PASSWORD=YOUR_SECURE_PASSWORD_HERE
|
|
REDIS_PORT=6380 # Using 6380 to avoid conflict with default 6379
|
|
|
|
# Memory Limits
|
|
REDIS_MEMORY_LIMIT=512M
|
|
REDIS_MEMORY_RESERVATION=256M
|
|
|
|
# Performance Tuning
|
|
REDIS_MAXMEMORY=512mb
|
|
REDIS_MAXMEMORY_POLICY=allkeys-lru
|
|
REDIS_TIMEOUT=0
|
|
REDIS_TCP_KEEPALIVE=300
|
|
REDIS_DATABASES=16
|
|
|
|
# Persistence Configuration
|
|
REDIS_SAVE="900 1 300 10 60 10000"
|
|
REDIS_APPENDONLY=yes
|
|
REDIS_APPENDFSYNC=everysec
|
|
|
|
# Logging
|
|
REDIS_LOGLEVEL=notice
|
|
|
|
# Client Limits
|
|
REDIS_MAXCLIENTS=10000
|
|
|
|
# Timezone
|
|
TZ=UTC |