From fc73bb77e2069585ce7abd96c7bc4e406e43e0af Mon Sep 17 00:00:00 2001 From: Senior Data Engineer Date: Sun, 26 Jul 2026 19:14:04 -0400 Subject: [PATCH] Fix Redis write failures on Windows Docker bind mounts (#12418) * Fix Docker setup for local Windows deployment. Disable Redis disk persistence to avoid bind-mount permission errors that caused login 500s, and configure localhost as the default site URL. * Fix Redis write failures on Windows Docker bind mounts. Disable RDB persistence for the cache container so login and other cache writes do not fail when the Redis data volume cannot be written on Windows hosts. * Keep Redis volume mount while disabling disk persistence. Addresses review feedback on #12418: retain the external /data volume from #11100 but disable RDB/AOF writes so Windows bind mounts no longer trigger MISCONF errors. --- contrib/container/docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/container/docker-compose.yml b/contrib/container/docker-compose.yml index 6f5d15f434..ce8b958a09 100644 --- a/contrib/container/docker-compose.yml +++ b/contrib/container/docker-compose.yml @@ -60,12 +60,15 @@ services: inventree-cache: image: redis:7-alpine container_name: inventree-cache - # Disable disk persistence — avoids permission issues on Windows bind mounts + # Disable disk persistence to avoid permission errors on Windows bind mounts. + # The /data volume is retained for layout consistency (#11100); cache data is ephemeral. command: redis-server --save "" --appendonly no env_file: - .env expose: - ${INVENTREE_CACHE_PORT:-6379} + volumes: + - ${INVENTREE_EXT_VOLUME}/redis:/data restart: always # InvenTree web server service