Skip to content

Commit

Permalink
add redis max memory limits
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed May 2, 2024
1 parent 1373fb7 commit ed46bda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
command:
- /bin/sh
- -c
- redis-server --save 20 1 --loglevel warning --requirepass "$${REDIS_HOST_PASSWORD:?REDIS_HOST_PASSWORD variable is not set}"
- redis-server --save 20 1 --appendonly no --maxmemory 16gb --maxmemory-policy allkeys-lru --loglevel warning --requirepass "$${REDIS_HOST_PASSWORD:?REDIS_HOST_PASSWORD variable is not set}"
volumes:
- redis:/data
networks:
Expand Down Expand Up @@ -109,4 +109,4 @@ volumes:

networks:
vision:
external: true
external: true
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
command:
- /bin/sh
- -c
- redis-server --save 20 1 --loglevel warning --requirepass "$${REDIS_HOST_PASSWORD:?REDIS_HOST_PASSWORD variable is not set}"
- redis-server --save 20 1 --appendonly no --maxmemory 16gb --maxmemory-policy allkeys-lru --loglevel warning --requirepass "$${REDIS_HOST_PASSWORD:?REDIS_HOST_PASSWORD variable is not set}"
volumes:
- redis:/data
networks:
Expand Down Expand Up @@ -109,4 +109,4 @@ volumes:

networks:
vision:
external: true
external: true

0 comments on commit ed46bda

Please sign in to comment.