Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,18 @@ services:
test: redis-cli ping | grep PONG
volumes:
- "sentry-redis:/data"
- type: bind
read_only: true
source: ./redis.conf
target: /usr/local/etc/redis/redis.conf
ulimits:
nofile:
soft: 10032
hard: 10032
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
# Configure Redis to use only 1/4 of the available memory inside the container
# We compute total memory from /proc/meminfo and pass it to redis-server as maxmemory
command:
- sh
- -c
- >
MAXMEM=$(awk '/MemTotal/ {printf "%d", $2*1024/4}' /proc/meminfo);
exec redis-server --maxmemory $$MAXMEM --maxmemory-policy volatile-lru
postgres:
<<: *restart_policy
# Using the same postgres version as Sentry dev for consistency purposes
Expand Down
27 changes: 0 additions & 27 deletions redis.conf

This file was deleted.

Loading