passing lru params via docker compose

This commit is contained in:
shimon
2022-06-20 17:32:34 +03:00
parent 463cd80005
commit 17360cd7bd
3 changed files with 6 additions and 2060 deletions
+6 -3
View File
@@ -640,11 +640,14 @@ services:
# - SMARTHOST_PORT=587
redis:
build:
context: .
dockerfile: docker/Dockerfile
image: redis:6.2-alpine
<<: *x-logging
container_name: appwrite-redis
command: >
redis-server
--maxmemory 512mb
--maxmemory-policy allkeys-lru
--maxmemory-samples 5
ports:
- "6379:6379"
networks:
-4
View File
@@ -1,4 +0,0 @@
FROM redis:6.2-alpine
COPY docker/redis.conf /usr/local/etc/redis/redis.conf
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
-2053
View File
File diff suppressed because it is too large Load Diff