From 026f8c69d7bf29cae8e83d92759d0116cf0a6121 Mon Sep 17 00:00:00 2001 From: Nicco Date: Mon, 24 Oct 2022 16:11:50 +0200 Subject: [PATCH] add size limit to redis --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 58790f7..c16f81b 100644 --- a/README.md +++ b/README.md @@ -77,12 +77,16 @@ version: '3.8' services: redis: image: redis:7-alpine + # Set a size limit. See link below on how to customise. + # https://redis.io/docs/manual/eviction/ + command: redis-server --maxmemory 1gb --maxmemory-policy allkeys-lru app: image: cupcakearmy/cryptgeon:latest depends_on: - redis environment: + # Size limit for a single note. SIZE_LIMIT: 4 MiB ports: - 80:5000