From e232eb47d9912109d763b6962e8749c9b5234ce3 Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Wed, 29 Nov 2023 08:49:51 +0000 Subject: [PATCH] SearXNG: Added persistant redis data volume --- searxng/docker-compose.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/searxng/docker-compose.yaml b/searxng/docker-compose.yaml index e126fd5..d2dfb8f 100644 --- a/searxng/docker-compose.yaml +++ b/searxng/docker-compose.yaml @@ -1,12 +1,12 @@ services: redis: container_name: searxng_redis - image: redis:alpine - command: redis-server --save "" --appendonly "no" + image: docker.io/library/redis:alpine + command: redis-server --save 30 1 --loglevel warning networks: - searxng - tmpfs: - - /var/lib/redis + volumes: + - redis-data:/data cap_drop: - ALL cap_add: @@ -42,3 +42,6 @@ networks: searxng: ipam: driver: default + +volumes: + redis-data: