Skip to content

Commit

Permalink
added variable REDIS_MAXMEMORY
Browse files Browse the repository at this point in the history
  • Loading branch information
fb929 committed Oct 17, 2024
1 parent 21c0b0b commit 2ac09c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ MONGO_URL=${MONGO_CONNECT}/?replicaSet=${MONGO_REPLICA_SET}
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_URL="redis://${REDIS_HOST}:${REDIS_PORT}?dial_timeout=3&read_timeout=6s"
REDIS_MAXMEMORY=256mb

STORAGE_DIR="./storage"

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
condition: service_completed_successfully
image: "redis/redis-stack-server:${REDIS_VERSION}"
restart: unless-stopped
command: ["redis-server", "--port", "${REDIS_PORT}", "--dir", "/data/", "--appendonly", "yes", "--maxmemory", "256mb", "--maxmemory-policy", "noeviction", "--protected-mode", "no", "--loadmodule", "/opt/redis-stack/lib/redisbloom.so"]
command: ["redis-server", "--port", "${REDIS_PORT}", "--dir", "/data/", "--appendonly", "yes", "--maxmemory", "${REDIS_MAXMEMORY}", "--maxmemory-policy", "noeviction", "--protected-mode", "no", "--loadmodule", "/opt/redis-stack/lib/redisbloom.so"]
volumes:
- "${STORAGE_DIR}/redis/:/data/"
healthcheck:
Expand Down

0 comments on commit 2ac09c7

Please sign in to comment.