From 0e3202fdf219a56b9c095e0d2f22492535bbb07a Mon Sep 17 00:00:00 2001 From: JMARyA Date: Mon, 22 Jul 2024 08:59:50 +0200 Subject: [PATCH] update searxng --- technology/applications/web/Searxng.md | 42 +++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/technology/applications/web/Searxng.md b/technology/applications/web/Searxng.md index 97c1e6a..aea551f 100644 --- a/technology/applications/web/Searxng.md +++ b/technology/applications/web/Searxng.md @@ -2478,4 +2478,44 @@ default_doi_resolver: 'oadoi.org' ``` ## Docker-Compose -#wip \ No newline at end of file +```yml +version: '3.7' + +services: + redis: + container_name: redis + image: "redis:alpine" + command: redis-server --save "" --appendonly "no" + tmpfs: + - /var/lib/redis + cap_drop: + - ALL + cap_add: + - SETGID + - SETUID + - DAC_OVERRIDE + restart: unless-stopped + + searxng: + container_name: searxng + image: searxng/searxng:latest + ports: + - "8042:8080" + volumes: + - ./data:/etc/searxng:rw + environment: + - SEARXNG_BASE_URL=https://search.hydrar.de/ + cap_drop: + - ALL + cap_add: + - CHOWN + - SETGID + - SETUID + - DAC_OVERRIDE + logging: + driver: "json-file" + options: + max-size: "1m" + max-file: "1" + restart: unless-stopped +```