From a1db60d15910adf88edeef6b1515395cc8bf11f0 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Thu, 27 Feb 2025 19:38:07 +0100 Subject: [PATCH] update docs about ram only redis --- README.md | 6 ++++-- README_ES.md | 6 ++++-- README_zh-CN.md | 6 +++++- docker-compose.dev.yaml | 5 +++++ examples/nginx/docker-compose.yaml | 7 ++++++- examples/scratch/README.md | 6 +++++- examples/traefik/README.md | 6 +++++- 7 files changed, 34 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6c77beb..da4af8b 100644 --- a/README.md +++ b/README.md @@ -106,9 +106,11 @@ version: '3.8' services: redis: image: redis:7-alpine - # Set a size limit. See link below on how to customise. + # This is required to stay in RAM only. + command: redis-server --save "" --appendonly no + # Additionally, you can 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 + # --maxmemory 1gb --maxmemory-policy allkeys-lru app: image: cupcakearmy/cryptgeon:latest diff --git a/README_ES.md b/README_ES.md index 5febea8..f40d55f 100644 --- a/README_ES.md +++ b/README_ES.md @@ -91,9 +91,11 @@ version: '3.8' services: redis: image: redis:7-alpine - # Set a size limit. See link below on how to customise. + # This is required to stay in RAM only. + command: redis-server --save "" --appendonly no + # Additionally, you can 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 + # --maxmemory 1gb --maxmemory-policy allkeys-lru app: image: cupcakearmy/cryptgeon:latest diff --git a/README_zh-CN.md b/README_zh-CN.md index b8e88ab..fcbd4bf 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -108,7 +108,11 @@ networks: services: redis: image: redis:7-alpine - restart: unless-stopped + # This is required to stay in RAM only. + command: redis-server --save "" --appendonly no + # Additionally, you can set a size limit. See link below on how to customise. + # https://redis.io/docs/manual/eviction/ + # --maxmemory 1gb --maxmemory-policy allkeys-lru app: image: cupcakearmy/cryptgeon:latest diff --git a/docker-compose.dev.yaml b/docker-compose.dev.yaml index 5edebe8..dba72cb 100644 --- a/docker-compose.dev.yaml +++ b/docker-compose.dev.yaml @@ -4,6 +4,11 @@ services: redis: image: redis:7-alpine + # This is required to stay in RAM only. + command: redis-server --save "" --appendonly no + # Additionally, you can set a size limit. See link below on how to customise. + # https://redis.io/docs/manual/eviction/ + # --maxmemory 1gb --maxmemory-policy allkeys-lrulpine ports: - 6379:6379 diff --git a/examples/nginx/docker-compose.yaml b/examples/nginx/docker-compose.yaml index dc68fc6..43b4eb8 100644 --- a/examples/nginx/docker-compose.yaml +++ b/examples/nginx/docker-compose.yaml @@ -3,12 +3,17 @@ version: '3.8' services: redis: image: redis:7-alpine + # This is required to stay in RAM only. + command: redis-server --save "" --appendonly no + # Additionally, you can set a size limit. See link below on how to customise. + # https://redis.io/docs/manual/eviction/ + # --maxmemory 1gb --maxmemory-policy allkeys-lru app: image: cupcakearmy/cryptgeon:latest depends_on: - redis - + proxy: image: nginx:alpine depends_on: diff --git a/examples/scratch/README.md b/examples/scratch/README.md index 5da79f1..74e765c 100644 --- a/examples/scratch/README.md +++ b/examples/scratch/README.md @@ -109,7 +109,11 @@ networks: services: redis: image: redis:7-alpine - restart: unless-stopped + # This is required to stay in RAM only. + command: redis-server --save "" --appendonly no + # Additionally, you can set a size limit. See link below on how to customise. + # https://redis.io/docs/manual/eviction/ + # --maxmemory 1gb --maxmemory-policy allkeys-lru app: image: cupcakearmy/cryptgeon:latest diff --git a/examples/traefik/README.md b/examples/traefik/README.md index eafc53c..6f8bde3 100644 --- a/examples/traefik/README.md +++ b/examples/traefik/README.md @@ -18,7 +18,11 @@ networks: services: redis: image: redis:7-alpine - restart: unless-stopped + # This is required to stay in RAM only. + command: redis-server --save "" --appendonly no + # Additionally, you can set a size limit. See link below on how to customise. + # https://redis.io/docs/manual/eviction/ + # --maxmemory 1gb --maxmemory-policy allkeys-lru app: image: cupcakearmy/cryptgeon:latest