Skip to content
  • Networking and privacy
  • Linux VPS
  • Ubuntu 24.04

Self-host SearXNG on a VPS

SearXNG runs well on a GhostRDP Linux VPS Basic plan with 2 vCPU and 6 GB RAM in Germany or the Netherlands, from €5.99/mo.

SearXNG sends your searches to many search engines and shows the results without profiling you. Your own instance means no one else's server sees your queries. This guide uses the Docker Compose method from the official docs.

  • No profiling

    Results from many engines, without a tracking account.

  • Official Compose setup

    The docs' own docker-compose.yml and .env.

  • Private instance

    Kept for you, behind an SSH tunnel or your VPN.

Plans for SearXNG

A personal instance is light. Basic runs it easily; pick Standard if you share it with many people.

  • Linux VPS Basic

    Recommended

    €5.99/mo

    €5.09/mo billed yearly, save €10/year

    • 2 vCPU
    • 6 GB ECC RAM
    • 40 GB NVMe
    • 1 Gbps port
    Order Basic
  • Linux VPS Standard

    €12.99/mo

    €11.04/mo billed yearly, save €23/year

    • 4 vCPU
    • 8 GB ECC RAM
    • 70 GB NVMe
    • 1 Gbps port
    Order Standard

What you need

  • Operating system
    Linux VPS with Ubuntu 24.04
  • Software
    Docker with the Compose plugin (installed below)
  • Access
    An SSH tunnel or VPN, or a domain and reverse proxy if you make it public

Official site: docs.searxng.org

How to install SearXNG

Written for Ubuntu 24.04 from the official instructions. Run the commands as root and replace YOUR_SERVER_IP with your server's address.

  1. 1

    Connect to your server over SSH

    Use the IP address and root password from your welcome email (the server page has a Copy SSH command button). Windows 10 and 11, macOS and Linux all include an SSH client in the terminal.

    Shell
    ssh root@YOUR_SERVER_IP
  2. 2

    Update the system

    Install the latest security updates before you add anything else.

    Shell
    apt update && apt -y upgrade
  3. 3

    Install Docker

    Docker's official convenience script adds Docker's own package repository and installs Docker Engine with the Compose plugin.

    Shell
    curl -fsSL https://get.docker.com -o get-docker.sh
    sh get-docker.sh
    docker --version
  4. 4

    Download the official compose files

    From the SearXNG docs. The older searxng-docker repository is archived; this is the current method.

    Shell
    mkdir -p ./searxng/core-config/
    cd ./searxng/
    curl -fsSL \
      -O https://raw.githubusercontent.com/searxng/searxng/master/container/docker-compose.yml \
      -O https://raw.githubusercontent.com/searxng/searxng/master/container/.env.example
    cp -i .env.example .env
  5. 5

    Start SearXNG

    Settings live in core-config/settings.yml once it has started. Stop it with docker compose down.

    Shell
    docker compose up -d
    docker compose ps
  6. 6

    Open it through an SSH tunnel

    Run this on your own computer, then open http://localhost:8080. Keep the port closed to the internet with a firewall.

    Shell
    ssh -L 8080:localhost:8080 root@YOUR_SERVER_IP

After installing

  • Set it as your browser's search
    Add your instance as a search engine in your browser, using the tunnel or VPN address.
  • Going public
    The SearXNG docs suggest a reverse proxy with HTTPS before you expose an instance. Public instances attract bots, so keep yours private unless you need otherwise.
  • Update
    Run docker compose pull and docker compose up -d in the searxng folder.

SearXNG questions

Why host SearXNG yourself?

Public instances see everyone's queries and often get rate-limited. Your own instance answers only you.

Which plan do I need?

Basic for personal use. Standard if a team or family shares it.

Is my search history stored?

SearXNG doesn't build a profile of you. Your server's own logs are under your control.

Can I use it from my phone?

Yes, through WireGuard or Tailscale on the phone, or through a domain with HTTPS if you choose to make it public.

Stuck on a step? Our team answers on live chat and in tickets.

More on GhostRDP

Run SearXNG on your own server.

Online in minutes. Pay with crypto, no ID needed.