redis.yml 388 B

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