Skip to content

Commit

Permalink
redis/docker-entrypoint.sh: listen on all interfaces
Browse files Browse the repository at this point in the history
Comment out the 'bind' directive in the default redis configuration
file, so that redis listens on all interfaces, not just localhost.
This is needed to work correctly when running with full networking,
though the loopback interface works for rootless podman networking.
  • Loading branch information
owtaylor committed Mar 2, 2021
1 parent 17dab90 commit b239f79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redis/docker-entrypoint.sh
Expand Up @@ -4,6 +4,7 @@ cat /etc/redis/redis.conf | \
sed \
-e 's@^dir .*@dir /data@' \
-e 's@^logfile .*@logfile ""@' \
-e 's@^bind @# bind @' \
> /etc/redis/redis-docker.conf

if [ "${REDIS_PASSWORD+set}" = "set" ] ; then
Expand Down

0 comments on commit b239f79

Please sign in to comment.