docker: add Redis service for shared cache and rate-limit buckets

Matches cache.handler=redis in .env.docker.example; lets the file-based
rate limiter and page cache work consistently across web/api/worker replicas.
This commit is contained in:
deepseek
2026-08-23 10:00:16 +00:00
parent beaf0e1f37
commit 8991166673
+13
View File
@@ -80,8 +80,21 @@ services:
interval: 10s interval: 10s
retries: 5 retries: 5
# Shared cache + rate-limit buckets across web/api/worker replicas.
redis:
image: redis:7-alpine
restart: unless-stopped
command: ["redis-server", "--maxmemory", "256mb", "--maxmemory-policy", "allkeys-lru"]
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
retries: 5
volumes: volumes:
db-data: db-data:
redis-data:
media-storage: media-storage:
incoming-storage: incoming-storage:
session-storage: session-storage: