bind redis to localhost
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2022-03-15 20:08:47 -03:00
parent ca3e933be4
commit 23845f54a8

View file

@ -3,10 +3,10 @@ ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}-100mb
MAINTAINER "f <f@sutty.nl>"
RUN echo "bind 127.0.0.1 ::1" >> /etc/redis.conf
RUN sed -re "/^save \"\"/d" \
-e "s/^(appendonly) .*/\1 yes/" \
-e "s/^(maxmemory-policy) .*/\1 volatile-ttl/" \
-e "s/^(bind) .*/\1 127.0.0.1 ::1/" \
-e "s|^(dir) .*|\1 /var/lib/redis|" \
-i /etc/redis.conf