mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-09 08:36:23 +01:00
Compare commits
2 Commits
master
...
997e3a058e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
997e3a058e | ||
|
|
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:
|
redis:
|
||||||
image: redis:8
|
image: redis:8
|
||||||
command: redis-server
|
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- "redis-data:/data"
|
- "redis-data:/data"
|
||||||
|
- ./conf/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
||||||
- ./conf/redis_healthcheck.sh:/usr/local/bin/redis_healthcheck.sh
|
- ./conf/redis_healthcheck.sh:/usr/local/bin/redis_healthcheck.sh
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "/usr/local/bin/redis_healthcheck.sh"]
|
test: ["CMD", "/usr/local/bin/redis_healthcheck.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user