Compare commits

..

2 Commits

Author SHA1 Message Date
Sava Georgiev
64a6e1f79c Merge branch 'docker-redis-config' into 'master'
Default redis configuration for docker setup

See merge request allianceauth/allianceauth!1787
2026-01-21 18:57:06 +00:00
Sava Georgiev
9a25a53d18 Default redis configuration for docker setup 2026-01-11 23:04:52 +01:00
6 changed files with 18 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ manage online service access.
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
__version__ = '4.12.0'
__version__ = '4.11.2'
__title__ = 'Alliance Auth'
__title_useragent__ = 'AllianceAuth'
__url__ = 'https://gitlab.com/allianceauth/allianceauth'

View File

@@ -796,7 +796,7 @@ msgstr "Framework"
#: allianceauth/framework/templates/framework/datatables/process-indicator.html:8
msgid "Loading …"
msgstr "Lade …"
msgstr ""
#: allianceauth/groupmanagement/apps.py:8
#: allianceauth/groupmanagement/auth_hooks.py:18

View File

@@ -1,7 +1,7 @@
PROTOCOL=https://
AUTH_SUBDOMAIN=%AUTH_SUBDOMAIN%
DOMAIN=%DOMAIN%
AA_DOCKER_TAG=registry.gitlab.com/allianceauth/allianceauth/auth:v4.12.0
AA_DOCKER_TAG=registry.gitlab.com/allianceauth/allianceauth/auth:v4.11.2
# Nginx Proxy Manager
PROXY_HTTP_PORT=80

View File

@@ -1,5 +1,5 @@
FROM python:3.11-slim
ARG AUTH_VERSION=v4.12.0
ARG AUTH_VERSION=v4.11.2
ARG AUTH_PACKAGE=allianceauth==${AUTH_VERSION}
ENV AUTH_USER=allianceauth
ENV AUTH_GROUP=allianceauth

12
docker/conf/redis.conf Normal file
View 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

View File

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