auto-commit

This commit is contained in:
2026-05-24 18:14:03 +00:00
parent 1aabab1db9
commit bdeed8d5ca
3 changed files with 50 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
SEARXNG_BASE_URL=http://192.168.1.3:11436/
SEARXNG_SECRET=2e7b4395836cf51e2bffdc380b08c11f61e838fcd388c3a80b0ef8ffddbdfaa4
+27
View File
@@ -3,6 +3,7 @@ services:
image: ollama/ollama:latest image: ollama/ollama:latest
container_name: ollama container_name: ollama
restart: unless-stopped restart: unless-stopped
runtime: nvidia
ports: ports:
- "11434:11434" - "11434:11434"
volumes: volumes:
@@ -14,6 +15,7 @@ services:
- OLLAMA_MAX_LOADED_MODELS=2 - OLLAMA_MAX_LOADED_MODELS=2
- OLLAMA_KEEP_ALIVE=10m - OLLAMA_KEEP_ALIVE=10m
- OLLAMA_FLASH_ATTENTION=1 - OLLAMA_FLASH_ATTENTION=1
- OLLAMA_KV_CACHE_TYPE=q4_0
deploy: deploy:
resources: resources:
reservations: reservations:
@@ -27,6 +29,27 @@ services:
timeout: 10s timeout: 10s
retries: 5 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: open-webui:
image: ghcr.io/open-webui/open-webui:main image: ghcr.io/open-webui/open-webui:main
container_name: open-webui container_name: open-webui
@@ -37,5 +60,9 @@ services:
- ./open-webui_data:/app/backend/data - ./open-webui_data:/app/backend/data
environment: environment:
- OLLAMA_BASE_URL=http://ollama:11434 - OLLAMA_BASE_URL=http://ollama:11434
- ENABLE_RAG_WEB_SEARCH=true
- RAG_WEB_SEARCH_ENGINE=searxng
- SEARXNG_QUERY_URL=http://searxng:8080/search?q=<query>
depends_on: depends_on:
- ollama - ollama
- searxng
+21
View File
@@ -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