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

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