What is Meilisearch?
Meilisearch is the open-source answer to "search that feels like Algolia": results as you type in under 50 ms, typo tolerance that just works, faceting, filtering, synonyms, and lately hybrid semantic search. It is a single Rust binary, which makes it a perfect self-hosting citizen.
This template runs Meilisearch in production mode behind a master key - keyless requests are rejected - with a 5 GB volume for indexes. It is public on its app domain by design: derive scoped search keys (GET /keys) for browsers, keep the master key server-side, and you have a complete search backend.
Where Algolia meters by the thousand searches and records, here searches and records are not metered. Search is the funnel feature users notice; the bill should not be.
What you get
- Sub-50 ms instant search with built-in typo tolerance
- Faceting, filtering, sorting, synonyms, stop words, multi-language
- Hybrid semantic + keyword search (bring an embedder)
- Master-key protected in production mode; scoped API keys per client
- InstantSearch-compatible frontend libraries
- Single container + 5 GB volume; data survives redeploys
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
meilisearch | search engine + API (:5000 public domain) | yes (master-key protected) |
Before you deploy
MEILI_MASTER_KEYmaster key (openssl rand -base64 24); derive scoped keys for apps
Sizing and billing
1 GiB RAM indexes and serves hundreds of thousands of documents comfortably. Indexing is the memory-hungry phase - bump RAM temporarily for very large initial imports.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 4.88 GiB of volumes cost $0.15 per GiB a month ($0.73/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Meilisearch Cloud | Cloud | $20/mo | floor; realistic small-project usage lands ~$23-30/mo |
| Algolia | Grow (pay-as-you-go) | $45/mo | at ~100k searches + 100k records/mo ($0.50 per 1k searches past free tier) |
Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Is Meilisearch a real Algolia alternative?
For most product search, docs search, and app search use cases - yes. Same instant-results UX, InstantSearch-compatible libraries, typo tolerance and faceting. What you give up is Algolia’s global edge network and some enterprise analytics; what you gain is no per-search metering and your data on your infrastructure.
How much does self-hosted Meilisearch cost vs Algolia or Meilisearch Cloud?
This template runs on 1 GiB with no per-search or per-record metering - you pay for the compute it reserves, on a flat resource or by the second on Usage Billing. Algolia and Meilisearch Cloud both price by usage tiers on searches and records.
Is it safe that Meilisearch is publicly reachable?
Yes, in production mode every request must carry a valid key - the master key rejects nothing-in-hand requests outright. Ship only scoped, expirable search keys to browsers; keep the master key in your backend env.
Does Meilisearch support semantic / AI search?
Yes - hybrid search combines keyword relevance with vector similarity. Configure an embedder (OpenAI, Hugging Face, or REST) on an index and queries can blend both, which materially improves recall on natural-language queries.