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.
This commit is contained in:
Senior Data Engineer
2026-07-27 09:14:04 +10:00
committed by GitHub
parent b7d65d754b
commit fc73bb77e2
+4 -1
View File
@@ -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