FROM postfix
RUN apt update
RUN apt install -y redis
#RUN echo "bind 127.0.0.1 0.0.0.0 ::1" >> /etc/redis/redis.conf
RUN echo "bind 0.0.0.0" >> /etc/redis/redis.conf
RUN sed -e 's/protected-mode yes/protected-mode no/g' -i /etc/redis/redis.conf
RUN mkdir /var/log/redis -p
RUN chown redis:redis /var/log/redis
COPY run.sh /root
RUN chmod a+x /root/run.sh
CMD ['/bin/bash','/root/run.sh']
