Searxng Docker

The docker-compose files for setting up a SearXNG instance with docker.
Alternatives To Searxng Docker
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Compose29,5701,1011218 hours ago144May 10, 2021174apache-2.0Go
Define and run multi-container applications with Docker
Portainer25,661115 hours ago78April 21, 20211,134zlibGo
Making Docker and Kubernetes management easy.
Awesome Compose23,743
12 hours ago7April 23, 2021110cc0-1.0HTML
Awesome Docker Compose samples
Docker Elk15,174
a day ago5mitShell
The Elastic stack (ELK) powered by Docker and Compose.
7 hours ago42mitDockerfile
Pre-Built Vulnerable Environments Based on Docker-Compose
Colima11,854216 hours ago34July 01, 2022172mitGo
Container runtimes on macOS (and Linux) with minimal setup
5 days ago148mitDockerfile
Full PHP development environment for Docker.
a day ago141apache-2.0PHP
This is a collection of tutorials for learning how to use Docker with various tools. Contributions welcome.
Kompose8,553137 hours ago64March 24, 202226apache-2.0Go
Convert Compose to Kubernetes
Testcontainers Java7,11443139615 hours ago79June 29, 2022532mitJava
Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
Alternatives To Searxng Docker
Select To Compare

Alternative Project Comparisons


Create a new SearXNG instance in five minutes using Docker

What is included ?

Name Description Docker image Dockerfile
Caddy Reverse proxy (create a LetsEncrypt certificate automatically) caddy/caddy:2-alpine Dockerfile
SearXNG SearXNG by itself searxng/searxng:latest Dockerfile
Redis In-memory database redis:alpine Dockerfile-alpine.template

How to use it

  • Install docker
  • Install docker-compose (be sure that docker-compose version is at least 1.9.0)
  • Get searxng-docker
    cd /usr/local
    git clone
    cd searxng-docker
  • Edit the .env file to set the hostname and an email
  • Generate the secret key sed -i "s|ultrasecretkey|$(openssl rand -hex 32)|g" searxng/settings.yml
  • Edit the searxng/settings.yml file according to your need
  • Check everything is working: docker-compose up
  • Run SearXNG in the background: docker-compose up -d

How to access the logs

To access the logs from all the containers use: docker-compose logs -f.

To access the logs of one specific container:

  • Caddy: docker-compose logs -f caddy
  • SearXNG: docker-compose logs -f searxng
  • Redis: docker-compose logs -f redis

Start SearXNG with systemd

You can skip this step if you don't use systemd.

  • cp searxng-docker.service.template searxng-docker.service
  • edit the content of WorkingDirectory in the searxng-docker.service file (only if the installation path is different from /usr/local/searxng-docker)
  • Install the systemd unit:
    systemctl enable $(pwd)/searxng-docker.service
    systemctl start searxng-docker.service

Note on the image proxy feature

The SearXNG image proxy is activated by default.

The default Content-Security-Policy allow the browser to access to ${SEARXNG_HOSTNAME} and https://*;.

If some users wants to disable the image proxy, you have to modify ./Caddyfile. Replace the img-src 'self' data: https://*; by img-src * data:;.

Multi Architecture Docker images

Supported architecture:

  • amd64
  • arm64
  • arm/v7

How to update ?

To update the SearXNG stack:

docker-compose pull
docker-compose down
docker-compose up

To update this docker-compose.yml file:

Check out the newest version on github: searxng/searxng-docker.

Popular Docker Projects
Popular Docker Compose Projects
Popular Virtualization Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Docker Compose