diff --git a/HISTORY.rst b/HISTORY.rst index 2e15f6fa1e..2d323a7912 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,8 @@ * Fix the link to the documenation. Closes GitLab issue #516. Thanks to Matthias Urlichs @smurfix for the report. * Update related links. Add links to the new Wiki and Forum. +* Add Redis config entries in the Docker images to disable + saving the database and to only provision 1 database. 3.1.3 (2018-09-27) ================== diff --git a/docker/Dockerfile b/docker/Dockerfile index d64d2f003e..ca61b2e9b3 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -75,6 +75,12 @@ ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib/ \ # Discard data when Redis runs out of memory RUN echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf +# Disable saving the Redis database +RUN echo "save \"\"" >> /etc/redis/redis.conf + +# Only provision 1 database +RUN echo "databases 1" >> /etc/redis/redis.conf + ##################### # Build image start # #####################