mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-28 01:17:21 +00:00
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:
@@ -60,12 +60,15 @@ services:
|
|||||||
inventree-cache:
|
inventree-cache:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
container_name: inventree-cache
|
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
|
command: redis-server --save "" --appendonly no
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
expose:
|
expose:
|
||||||
- ${INVENTREE_CACHE_PORT:-6379}
|
- ${INVENTREE_CACHE_PORT:-6379}
|
||||||
|
volumes:
|
||||||
|
- ${INVENTREE_EXT_VOLUME}/redis:/data
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# InvenTree web server service
|
# InvenTree web server service
|
||||||
|
|||||||
Reference in New Issue
Block a user