Skip to content

Instantly share code, notes, and snippets.

@sidmulajkar
Created October 2, 2022 12:36
Show Gist options
  • Save sidmulajkar/9a313e34fe2e79f15f58fb4ca81264eb to your computer and use it in GitHub Desktop.
Save sidmulajkar/9a313e34fe2e79f15f58fb4ca81264eb to your computer and use it in GitHub Desktop.
How to host a personal meta-search engine using docker

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled as we are hosting it.

This meta search can be hosted on cloud or on raspberrypi or simple VM Instances as well using docker

  1. Install docker and docker-compose

For ubuntu, mint and debian users

sudo apt update
sudo apt install docker.io
sudo apt install docker-compose

or

sudo dnf install docker
sudo dnf install docker-compose

For arch users

sudo pacman -Syu
sudo pacman -S docker
sudo pacman -S docker-compose
  1. After Installing the docker and docker compose as well
mkdir searchengine
cd searchengine
export PORT=8080
docker pull searxng/searxng
docker run --rm \
            -d -p ${PORT}:8080 \
            -v "${PWD}/searxng:/etc/searxng" \
            -e "BASE_URL=http://localhost:$PORT/" \
            -e "INSTANCE_NAME=my-instance" \
            searxng/searxng
  1. Open your web browser and visit the URL and modify the settings as required:

http://localhost:8080

Searxng Image

Or just want to use Online Searxng Instances hosted by other people: https://searx.space/

I personally don't recommend it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment