# Self-host SearXNG

> A privacy-respecting metasearch engine that aggregates results from dozens of search services.

- Page: https://levelrail.com/templates/searxng/
- JSON: https://levelrail.com/templates/searxng.json
- Category: Applications
- Licence: AGPL-3.0-or-later (Network copyleft (AGPL) license)
- Source: https://github.com/searxng/searxng
- Upstream docs: https://docs.searxng.org

## Requirements
- Memory: about 256 MiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: 7-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| redis | redis | 7-alpine | none | searxng_redis_data -> /data |
| searxng | searxng/searxng | 2026.9.23-3cd69d30e | 8080 | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| searxng | SEARXNG_REDIS_URL | preset |
| searxng | SEARXNG_SECRET | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy searxng --name my-searxng
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/searxng/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy SearXNG on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id searxng for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image redis:7-alpine, searxng/searxng:2026.9.23-3cd69d30e is what you deploy there.

Self-host SearXNG, SearXNG docker compose file, deploy SearXNG on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
