mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-31 02:10:32 +02:00
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>
28 lines
615 B
Plaintext
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
|