This commit is contained in:
Adam Konrad 2026-02-06 10:11:10 +01:00 committed by GitHub
commit 8a8d4ab1cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -119,6 +119,12 @@ services:
redis:
<<: *restart_policy
image: "redis:6.2.20-alpine"
deploy:
resources:
reservations:
memory: 512m
limits:
memory: 3072m
healthcheck:
<<: *healthcheck_defaults
test: redis-cli ping | grep PONG

View File

@ -12,7 +12,7 @@
# maxmemory 0 # Unlimited memory usage
# maxmemory 15gb # Limit memory usage to 15 GB
maxmemory 0
maxmemory 2gb
# This setting determines how Redis evicts keys when it reaches the memory limit.
# `allkeys-lru` evicts the least recently used keys from all keys stored in Redis,