aurweb/docker/redis-entrypoint.sh
Jelle van der Waa 98f55879d3 fix(docker): don't run redis with protected mode
For our development setup we run a redis container without a
username/password. Redis recently set protected mode by default which
disallows this, turn it off as it has no security implication.
2022-06-28 22:14:01 +02:00

7 lines
179 B
Bash
Executable file

#!/bin/bash
set -eou pipefail
sed -ri 's/^bind .*$/bind 0.0.0.0 -::1/g' /etc/redis/redis.conf
sed -ri 's/protected-mode yes/protected-mode no/g' /etc/redis/redis.conf
exec "$@"