mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-04 06:06:19 +01:00
Compare commits
2 Commits
master
...
6ad94ca90f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ad94ca90f | ||
|
|
9a25a53d18 |
12
docker/conf/redis.conf
Normal file
12
docker/conf/redis.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
# Set the maximum memory usage
|
||||
maxmemory 2GB
|
||||
|
||||
# Evict old keys instead of growing
|
||||
maxmemory-policy allkeys-lru
|
||||
|
||||
# Disable disk persistence
|
||||
appendonly no
|
||||
save ""
|
||||
|
||||
# Optional: reduce fragmentation
|
||||
activedefrag yes
|
||||
@@ -78,10 +78,11 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:8
|
||||
command: redis-server
|
||||
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||
restart: always
|
||||
volumes:
|
||||
- "redis-data:/data"
|
||||
- ./conf/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
||||
- ./conf/redis_healthcheck.sh:/usr/local/bin/redis_healthcheck.sh
|
||||
healthcheck:
|
||||
test: ["CMD", "/usr/local/bin/redis_healthcheck.sh"]
|
||||
|
||||
Reference in New Issue
Block a user