mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
added variable REDIS_MAXMEMORY
This commit is contained in:
parent
21c0b0b3bf
commit
2ac09c7361
2 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue