---
title: "Deploy Meilisearch (Flexible version)"
description: "Meilisearch is a fast, AI-powered, user-focused search engine."
category: "Other"
url: https://railway.com/deploy/meilisearch-flexible-version
---

# Deploy Meilisearch (Flexible version)

Meilisearch is a fast, AI-powered, user-focused search engine.

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

- **Creator:** Protemplate
- **Category:** Other
- **Total deploys:** 25

## Template content

### Meilisearch https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/meilisearch-logo.png

- **Source:** protemplate/meilisearch-railway
- **Public domain:** Yes

## Documentation

# Meilisearch
Deploy a production-ready Meilisearch instance with one click. Get instant, typo-tolerant search for your applications with built-in security and persistent storage.

## Version Flexibility Feature

This template's standout feature is **complete version control**. Unlike fixed deployments, you can:

- Deploy **any Meilisearch version** from v0.25 to the latest release
- **Test new releases** in staging before production upgrades  
- **Maintain version consistency** across development and production environments
- **Roll back versions** if needed by simply changing `MEILISEARCH_VERSION`
- **Use specific versions** required by your SDK or application

Simply set `MEILISEARCH_VERSION` in your Railway variables to any valid [Meilisearch Docker tag](https://hub.docker.com/r/getmeili/meilisearch/tags).


## Key Features

- **⚡ Lightning-fast search** - Sub-50ms search responses with typo tolerance
- **🔐 Secure by default** - Master key authentication required
- **💾 Persistent storage** - Data survives redeploys with Railway volumes
- **🌐 RESTful API** - Easy integration with any application
- **🔄 Auto-configured** - Handles Railway's dynamic port assignment automatically

## Quick Setup

1. **Deploy** - Click the deploy button
2. **Configure** - Set your `MEILI_MASTER_KEY` (required)
3. **Use** - Your search API is ready at `https://YOUR_APP.railway.app` or (Private Network) `http://${{Meilisearch.RAILWAY_PRIVATE_DOMAIN}}:PORT`

## Essential Configuration

| Variable | Description | Required |
|----------|-------------|----------|
| `MEILI_MASTER_KEY` | Secure API key for authentication | ✅ Yes |
| `MEILISEARCH_VERSION` | Version to deploy (default: latest) | No |
| `MEILI_ENV` | `production` or `development` | No |

## Use Cases

Perfect for:
- 🛍️ E-commerce product search
- 📚 Documentation sites
- 🎬 Media libraries
- 📝 Content management systems
- 🏢 Internal knowledge bases

## Resources

- [Documentation](https://docs.meilisearch.com)
- [API Reference](https://docs.meilisearch.com/reference/api)
- [SDKs](https://docs.meilisearch.com/learn/what_is_meilisearch/sdks) (JavaScript, Python, Ruby, Go, Rust, PHP, and more)


# Deploy and Host Meilisearch (Flexible version) on Railway

Meilisearch is a blazing-fast, open-source search engine that delivers instant, typo-tolerant search results. This flexible version template allows you to deploy any Meilisearch version with production-ready configuration, persistent storage, and automatic SSL on Railway's infrastructure.

## About Hosting Meilisearch (Flexible version)

Hosting Meilisearch on Railway provides a production-ready search infrastructure with zero configuration overhead. This template automatically handles Railway's dynamic port assignment, configures secure authentication with master keys, and sets up persistent volumes for data storage. The flexible version system allows you to deploy specific Meilisearch releases or always use the latest version, ensuring compatibility with your application requirements. Railway's platform manages scaling, SSL certificates, and health monitoring, while the template provides optimized Docker configuration for consistent deployments.

## Common Use Cases

- **E-commerce Product Search**: Enable customers to find products instantly with typo tolerance, filters, and faceted search
- **Documentation and Knowledge Bases**: Power search for technical documentation, wikis, and help centers with relevant ranking
- **SaaS Application Search**: Add full-text search to multi-tenant applications with API key management
- **Media and Content Libraries**: Search through movies, music, articles, or any content with custom ranking rules
- **Internal Enterprise Search**: Create searchable databases for employee directories, documents, and company resources

## Dependencies for Meilisearch (Flexible version) Hosting

- **Docker**: Containerization platform (handled by Railway)
- **Persistent Storage**: Railway volumes for data persistence at `/meili_data`

### Deployment Dependencies

- [Meilisearch Official Documentation](https://docs.meilisearch.com)
- [Meilisearch Docker Hub](https://hub.docker.com/r/getmeili/meilisearch)
- [Railway Volumes Documentation](https://docs.railway.app/guides/volumes)
- [Meilisearch API Reference](https://docs.meilisearch.com/reference/api)
- [Meilisearch SDKs](https://github.com/meilisearch?q=sdk) - Official clients for JavaScript, Python, Ruby, Go, Rust, PHP, and more

### Implementation Details

Configure your deployment with environment variables:

# Required for production security
MEILI_MASTER_KEY=your-secure-master-key-here

# Optional: Specify Meilisearch version (default: latest)
MEILISEARCH_VERSION=v1.15

# Optional: Set environment mode
MEILI_ENV=production  # or development for web UI

# Optional: Configure logging
MEILI_LOG_LEVEL=INFO  # ERROR, WARN, INFO, DEBUG, TRACE

## Why Deploy Meilisearch (Flexible version) 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 (Flexible version) 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-flexible-version
