From 9799fb40c984bc5449fca6bc656a7fde1b8728f5 Mon Sep 17 00:00:00 2001 From: Andrew Baek Date: Fri, 28 Nov 2025 19:06:27 +0400 Subject: [PATCH] Update searxng.md --- docs/features/web-search/searxng.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/features/web-search/searxng.md b/docs/features/web-search/searxng.md index 82082fc..7de9c98 100644 --- a/docs/features/web-search/searxng.md +++ b/docs/features/web-search/searxng.md @@ -131,7 +131,7 @@ rm searxng/settings.yml 7. Bring up the container momentarily to generate a fresh settings.yml file: -If the container name caddy, redis, searxng is already in use, change it to another name of your choice in the docker-compose.yaml file. +If you have multiple containers running with the same name, such as caddy, redis, or searxng, you need to rename them in the docker-compose.yaml file to avoid conflicts. ```bash docker compose up -d ; sleep 10 ; docker compose down @@ -139,6 +139,8 @@ docker compose up -d ; sleep 10 ; docker compose down After the initial run, add `cap_drop: - ALL` to the `docker-compose.yaml` file for security reasons. +If Open WebUI is running in the same Docker network as Searxng, you may remove the `0.0.0.0` and only specify the port mapping. In this case, Open WebUI can access Searxng directly using the container name. +
docker-compose.yaml @@ -150,7 +152,7 @@ searxng: networks: - searxng ports: - - "0.0.0.0:9630:8080" + - "0.0.0.0:8080:8080" # use 8080:8080 if containers are in the same Docker network volumes: - ./searxng:/etc/searxng:rw - searxng-data:/var/cache/searxng:rw @@ -324,7 +326,7 @@ docker exec -it open-webui curl http://host.docker.internal:8080/search?q=this+i 3. Set `Web Search Engine` from dropdown menu to `searxng` 4. Set `Searxng Query URL` to one of the following examples: -- `http://localhost:8080/search?q=` (using the host and exposed port, suitable for Docker-based setups) +- `http://localhost:8080/search?q=` (using the host and host port, suitable for Docker-based setups) - `http://searxng:8080/search?q=` (using the container name and exposed port, suitable for Docker-based setups) - `http://host.docker.internal:8080/search?q=` (using the `host.docker.internal` DNS name and the host port, suitable for Docker-based setups) - `http:///search?q=` (using a local domain name, suitable for local network access)