Add Redis config entries in the Docker images to disable saving the database and to only provision 1 database.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-10-02 02:30:50 -04:00
parent ded7eb0bfd
commit da8c9d08d8
2 changed files with 8 additions and 0 deletions

View File

@@ -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)
==================

View File

@@ -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 #
#####################