---
title: "Deploy SearXNG"
description: "Privacy-respecting meta-search engine. No tracking, no data storage"
category: "Other"
url: https://railway.com/deploy/searxng-1
---

# Deploy SearXNG

Privacy-respecting meta-search engine. No tracking, no data storage

**[Deploy SearXNG on Railway](https://railway.com/template/searxng-1)**

- **Creator:** c-treinta
- **Category:** Other
- **Total deploys:** 4

## Template content

### railway-searxng https://raw.githubusercontent.com/c-treinta/railway-searxng/main/icon.svg

- **Source:** c-treinta/railway-searxng
- **Health check:** /heathz

## Documentation

# Deploy and Host SearXNG with Railway

SearXNG is a free, open-source, privacy-respecting meta-search engine that aggregates results from over 70 search services without tracking users or storing search history.

## About Hosting SearXNG

Hosting SearXNG gives you a private search engine under your own control. Because SearXNG proxies queries to upstream search engines, it requires no database and holds no persistent state — making it one of the lightest services to run. The main operational concern is keeping the secret key consistent across redeployments (so existing sessions stay valid) and optionally restricting admin access with a password. Railway handles TLS termination, health checking via `/healthz`, and automatic restarts on failure.

## Common Use Cases

- **Personal privacy search** — stop being tracked across searches by Google, Bing, and similar services
- **Team or org-internal search portal** — deploy once, share the URL internally
- **Self-hosted alternative to DuckDuckGo** — full control over which engines are enabled and weighted
- **Research and OSINT** — aggregate results from multiple engines simultaneously without fingerprinting
- **Development and testing** — inspect and modify the search pipeline without third-party rate limits

## Dependencies for SearXNG Hosting

SearXNG is a single-service deployment with no external dependencies:

- **SearXNG** — the search engine itself (Python/Flask, runs as a single container)

### Deployment Dependencies

- [SearXNG Docker image](https://hub.docker.com/r/searxng/searxng)
- [SearXNG documentation](https://docs.searxng.org/)
- [SearXNG settings reference](https://docs.searxng.org/admin/settings/index.html)

### Implementation Details

`SEARXNG_SECRET_KEY` is injected into `settings.yml` at container startup via `entrypoint.sh`. It must be a consistent hex string across redeployments — the Railway template variable function `${{secret(64, "abcdef0123456789")}}` generates a stable value per deploy.

`SEARXNG_ADMIN_PASSWORD`, if set, enables password-protected access to the admin preferences panel at `/preferences`.

### Why Deploy SearXNG on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying SearXNG on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/searxng-1
