Open WebUI + searXNG(Docker) 설정하기

By | 2025년 3월 26일
Table of Contents

Open WebUI + searXNG(Docker) 설정하기

참조

searxng 설치

git clone https://github.com/searxng/searxng-docker.git
cd searxng-docker
vi docker-compose.yaml
--------------
services:
  searxng:
    container_name: searxng
    image: searxng/searxng:latest
    ports:
      - "8080:8080"
    volumes:
      - ./searxng:/etc/searxng:rw
    env_file:
      - .env
    restart: unless-stopped
    cap_drop:
      - ALL
    cap_add:
      - CHOWN
      - SETGID
      - SETUID
      - DAC_OVERRIDE
    logging:
      driver: "json-file"
      options:
        max-size: "1m"
        max-file: "1"
--------------
vi .env
--------------
SEARXNG_HOSTNAME=localhost:8080/
--------------
sed -i "s|ultrasecretkey|$(openssl rand -hex 32)|g" searxng/settings.yml
vi searxng/settings.yml
......
limiter: false
......
#redis:
#  url: redis://redis:6379/0
......
search:
  formats:
    - html
    - json

실행

docker compose up -d
docker ps

# 제거
# docker compose down

테스트

(json 이 아니라) html 로 결과가 화면에 나와야 한다.

curl http://localhost:8080/search?q=this+is+a+test+query&format=json

docker exec -it open-webui /bin/bash
curl http://host.docker.internal:8080/search?q=this+is+a+test+query&format=json

Open WebUI 에서 관리자 설정 > 웹검색 을 설정해 준다.
뒤쪽에 query 부분도 그대로 입력해야 한다.

http://host.docker.internal:8080/search?q=<query>

http://host.docker.internal:8080/search?q=<query>

paraphrase-multilingual:latest 모델을 다운로드한다.

답글 남기기