bind redis to localhost
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
f 2022-03-15 20:08:47 -03:00
parent ca3e933be4
commit 23845f54a8
1 changed files with 1 additions and 1 deletions

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