SearXNG
De Le Wiki de Lug
Autres actions
Prérequis
- si Alpine LXC : avec Nesting et keyctl activé (Docker).
- CPU :
- minimum : 1 vCPU
- recommandé : 2 vCPU (meilleure gestion des requêtes simultanées)
- RAM :
- minimum : 512 Mo
- recommandé : 1 Go
- confortable : 2 Go si forte utilisation ou nombreux moteurs activés
- Stockage :
- minimum : 1–2 Go
- recommandé : 5 Go (logs + cache)
Installation
On installe docker :
# apk update && apk upgrade # apk add docker docker-cli-compose # rc-update add docker default # rc-service docker start
On installe SearXNG :
# mkdir /opt/searxng-docker # cd /opt/searxng-docker
On crée le docker-compose :
# vi docker-compose.yml
services:
searxng:
image: searxng/searxng:latest
container_name: searxng
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./searxng-data:/etc/searxng
environment:
# Accès direct via IP :
- SEARXNG_BASE_URL=http://IP_LXC:8080/
# Accès via reverse proxy (HTTPS recommandé) :
#- SEARXNG_BASE_URL=https://DNS_REVERSE_PROXY/
On lance SearXNG :
# docker compose up -d
Vérification :
# docker ps
Configuration
Pour configurer manuellement l'instance (après le premier démarrage), éditer le fichier :
# vi /opt/searxng-docker/searxng-data/settings.yml
Appliquer les modifications :
# docker compose restart