passing lru params via docker compose
This commit is contained in:
parent
463cd80005
commit
17360cd7bd
|
@ -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:
|
||||
|
|
|
@ -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
docker/redis.conf
2053
docker/redis.conf
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue