1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

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

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:

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" ]

File diff suppressed because it is too large Load diff