From ff9f465b8b1eea0e812c81464c69ba68e11e31d4 Mon Sep 17 00:00:00 2001 From: B-z-F Date: Fri, 9 Jan 2026 00:03:34 +0100 Subject: [PATCH] Save redis data in docker volume to prevent creating new volume on each container start (#11100) * Save redis data in docker volume to prevent creating new volume on each container start * Correction in comment about redis - is enabled by default --- contrib/container/docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/container/docker-compose.yml b/contrib/container/docker-compose.yml index 5e2e061dd3..ca0fe6cd19 100644 --- a/contrib/container/docker-compose.yml +++ b/contrib/container/docker-compose.yml @@ -3,7 +3,7 @@ # - gunicorn as the InvenTree web server # - django-q as the InvenTree background worker process # - Caddy as a reverse proxy -# - redis as the cache manager (optional, disabled by default) +# - redis as the cache manager (optional, enabled by default) # --------------------- # READ BEFORE STARTING! @@ -64,6 +64,8 @@ services: - .env expose: - ${INVENTREE_CACHE_PORT:-6379} + volumes: + - ${INVENTREE_EXT_VOLUME}/redis:/data restart: always # InvenTree web server service