From 2c1aec040b03a58eb3cae0213a2f09d50463a9bd Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sat, 10 Feb 2024 15:49:18 +0100 Subject: [PATCH] Change Redis command --- roles/apps/templates/compose-files/caddy.yml.j2 | 4 ++-- roles/apps/templates/compose-files/searxng.yml.j2 | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/roles/apps/templates/compose-files/caddy.yml.j2 b/roles/apps/templates/compose-files/caddy.yml.j2 index 9034eac..8a907dd 100644 --- a/roles/apps/templates/compose-files/caddy.yml.j2 +++ b/roles/apps/templates/compose-files/caddy.yml.j2 @@ -18,10 +18,10 @@ services: - "./data/Caddyfile:/etc/caddy/Caddyfile:ro" - "./data/caddy-config:/config:rw" - "./data/caddy-data:/data:rw" - cap_add: - - NET_BIND_SERVICE cap_drop: - ALL + cap_add: + - NET_BIND_SERVICE networks: {{ apps_shared_docker_network }}: diff --git a/roles/apps/templates/compose-files/searxng.yml.j2 b/roles/apps/templates/compose-files/searxng.yml.j2 index 84e78f9..eb26641 100644 --- a/roles/apps/templates/compose-files/searxng.yml.j2 +++ b/roles/apps/templates/compose-files/searxng.yml.j2 @@ -7,14 +7,14 @@ services: redis: image: redis:{{ apps_vars.searxng.redis_version }} restart: always - command: redis-server --save 60 1 --appendonly no + command: redis-server --save 30 1 --loglevel warning volumes: - "./data/redis:/data:rw" + cap_drop: + - ALL cap_add: - SETUID - SETGID - cap_drop: - - ALL app: image: searxng/searxng:{{ apps_vars.searxng.version }} @@ -28,11 +28,11 @@ services: - searxng volumes: - "./data/settings.yml:/etc/searxng/settings.yml:ro" + cap_drop: + - ALL cap_add: - SETUID - SETGID - cap_drop: - - ALL depends_on: - redis