From bdeed8d5ca52186d1d378e98a97330524d9cf357 Mon Sep 17 00:00:00 2001 From: Storozhenko Evgeny Vladimirovich Date: Sun, 24 May 2026 18:14:03 +0000 Subject: [PATCH] auto-commit --- .env | 2 ++ docker-compose.yaml | 27 +++++++++++++++++++++++++++ searxng/settings.yml | 21 +++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .env create mode 100644 searxng/settings.yml diff --git a/.env b/.env new file mode 100644 index 0000000..ae1a106 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +SEARXNG_BASE_URL=http://192.168.1.3:11436/ +SEARXNG_SECRET=2e7b4395836cf51e2bffdc380b08c11f61e838fcd388c3a80b0ef8ffddbdfaa4 diff --git a/docker-compose.yaml b/docker-compose.yaml index 214d592..8981a5a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,6 +3,7 @@ services: image: ollama/ollama:latest container_name: ollama restart: unless-stopped + runtime: nvidia ports: - "11434:11434" volumes: @@ -14,6 +15,7 @@ services: - OLLAMA_MAX_LOADED_MODELS=2 - OLLAMA_KEEP_ALIVE=10m - OLLAMA_FLASH_ATTENTION=1 + - OLLAMA_KV_CACHE_TYPE=q4_0 deploy: resources: reservations: @@ -27,6 +29,27 @@ services: timeout: 10s retries: 5 + searxng: + image: searxng/searxng:latest + container_name: searxng + restart: unless-stopped + ports: + - "11436:8080" + volumes: + - ./searxng:/etc/searxng + environment: + - BASE_URL=http://localhost:11436/ + - INSTANCE_NAME=searxng + - SEARXNG_BASE_URL=${SEARXNG_BASE_URL} + - SEARXNG_SECRET=${SEARXNG_SECRET} + - SEARXNG_LIMITER=false + healthcheck: + test: ["CMD-SHELL", "curl -fsS http://localhost:8080/healthz >/dev/null || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 30s + open-webui: image: ghcr.io/open-webui/open-webui:main container_name: open-webui @@ -37,5 +60,9 @@ services: - ./open-webui_data:/app/backend/data environment: - OLLAMA_BASE_URL=http://ollama:11434 + - ENABLE_RAG_WEB_SEARCH=true + - RAG_WEB_SEARCH_ENGINE=searxng + - SEARXNG_QUERY_URL=http://searxng:8080/search?q= depends_on: - ollama + - searxng diff --git a/searxng/settings.yml b/searxng/settings.yml new file mode 100644 index 0000000..4611bef --- /dev/null +++ b/searxng/settings.yml @@ -0,0 +1,21 @@ +use_default_settings: true + +general: + instance_name: searxng + +search: + safe_search: 0 + autocomplete: "" + default_lang: "" + formats: + - html + - json + +server: + secret_key: "2e7b4395836cf51e2bffdc380b08c11f61e838fcd388c3a80b0ef8ffddbdfaa4" + limiter: false + image_proxy: true + method: POST + +ui: + static_use_hash: true