Files
hassio-addons/immich/rootfs/etc/s6-overlay/s6-rc.d/svc-redis/run
copilot-swe-agent[bot] eb08853b50 Fix Redis in immich_cuda: install redis-server directly instead of Docker mods
Apply the same Redis fix from the immich addon to immich_cuda:
- Remove DOCKER_MODS env var from Dockerfile and config.yaml
- Add redis-server to PACKAGES for direct installation
- s6-rc service files, redis.conf, and 20-folders.sh were already updated

This prevents ECONNRESET errors caused by Docker mods failing to install
Redis at runtime (issue #2615).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-03-28 22:42:07 +00:00

28 lines
615 B
Plaintext

#!/usr/bin/with-contenv bash
# Create Redis directories
mkdir -p \
/data/redis \
/data/log \
/var/run/redis
# Copy default redis.conf if not present
if [[ ! -f /data/redis/redis.conf ]]; then
cp /defaults/redis.conf /data/redis/redis.conf 2>/dev/null || touch /data/redis/redis.conf
fi
# Set permissions
chown -R root:root \
/data/redis \
/data/log \
/var/run/redis
exec \
redis-server /data/redis/redis.conf \
--bind 127.0.0.1 \
--port 6379 \
--pidfile /var/run/redis/redis.pid \
--always-show-logo no \
--dir /data/redis \
--logfile /data/log/redis.log