fix(redis): service crash on redis client maxxing

This commit is contained in:
sharath 2025-05-18 23:46:08 +00:00
parent e4721aa7ba
commit dd3f04c4a5
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

View File

@ -133,10 +133,11 @@ services:
- "127.0.0.1:6379:6379"
volumes:
- redis_data:/data
- ./services/docker/redis.conf:/usr/local/etc/redis/redis.conf:ro
restart: unless-stopped
networks:
- app-network
command: redis-server --appendonly yes --bind 0.0.0.0 --protected-mode no --maxmemory 8gb --maxmemory-policy allkeys-lru
command: redis-server /usr/local/etc/redis/redis.conf --appendonly yes --bind 0.0.0.0 --protected-mode no --maxmemory 8gb --maxmemory-policy allkeys-lru
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s

View File

@ -0,0 +1 @@
timeout 120

View File

@ -3,7 +3,8 @@ services:
image: redis:7-alpine
volumes:
- redis_data:/data
command: redis-server --save 60 1 --loglevel warning
- ./backend/services/docker/redis.conf:/usr/local/etc/redis/redis.conf:ro
command: redis-server /usr/local/etc/redis/redis.conf --save 60 1 --loglevel warning
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s