---
title: "Deploy Meilisearch"
description: "Meilisearch is a flexible and powerful user-focused search engine."
category: "Other"
url: https://railway.com/deploy/meilisearch-2
---

# Deploy Meilisearch

Meilisearch is a flexible and powerful user-focused search engine.

**[Deploy Meilisearch on Railway](https://railway.com/template/meilisearch-2)**

- **Creator:** Faraz Patankar
- **Category:** Other
- **Total deploys:** 6

## Template content

### meilisearch https://mintlify.s3-us-west-1.amazonaws.com/meilisearch-6b28dec2/_generated/favicon/apple-touch-icon.png

- **Image:** getmeili/meilisearch:v1.42.1
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host Meilisearch on Railway

Meilisearch is a fast, open-source search engine for building typo-tolerant search experiences. It supports ranking rules, filters, facets, synonyms, and highlighted results, making it a good fit for product catalogs, documentation, marketplaces, dashboards, and internal tools that need relevant search without running a large search cluster.

## About Hosting Meilisearch

Hosting Meilisearch involves running the Meilisearch server, securing it with a master key, and attaching persistent storage so indexes survive restarts and redeploys. This template deploys Meilisearch with production mode enabled, telemetry disabled, and a persistent Railway volume mounted for index data. Once deployed, your application can connect to Meilisearch over HTTPS using the generated public domain and `MEILI_MASTER_KEY`. You can create indexes, configure search settings, and sync documents from your app or background workers.

## Common Use Cases

- Product, marketplace, or template search
- Documentation and knowledge base search
- Internal admin search across users, records, or content

## Dependencies for Meilisearch Hosting

- A persistent Railway volume for Meilisearch data
- A secure `MEILI_MASTER_KEY` used by trusted backend services

### Deployment Dependencies

- Meilisearch Docker image: https://hub.docker.com/r/getmeili/meilisearch
- Meilisearch documentation: https://www.meilisearch.com/docs
- Configuration reference: https://www.meilisearch.com/docs/resources/self_hosting/configuration/reference

### Implementation Details

This template uses the official Meilisearch Docker image with a Railway volume mounted at:

```text
/meili_data
```

Recommended environment variables:

```text
MEILI_ENV=production
MEILI_NO_ANALYTICS=true
MEILI_DB_PATH=/meili_data/data.ms
MEILI_HTTP_ADDR=0.0.0.0:${{PORT}}
MEILI_MASTER_KEY=
```

Connect from your backend with:

```bash
curl https:///indexes \
  -H "Authorization: Bearer "
```

## Why Deploy Meilisearch 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 Meilisearch 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/meilisearch-2
