HUB
Sign inSign up
meilisearch logo

getmeili/meilisearch

By getmeili

•Updated about 1 hour ago

An open-source, fast, and hyper-relevant search engine that fits effortlessly into your projects.

Image
Databases & storage
121

50M+

getmeili/meilisearch repository overview

⁠Meilisearch

Meilisearch⁠ is a search engine for fast, relevant full-text, semantic, and hybrid search. It is open source under the MIT license.

This image runs the engine on your own machine or server. If you would rather not run a server, Meilisearch Cloud⁠ runs the same engine for you.

⁠Two ways to run Meilisearch

What you getGet started
Meilisearch Cloud (recommended)Managed Meilisearch: no servers to deploy, upgrade, or back up, plus monitoring, search analytics, and team management. 14-day free trial, no credit card required.Create a project⁠
Self-hosted with this imageThe open-source engine on your own infrastructure. You handle security, upgrades, backups, and scaling.Quick start⁠

Both run the same engine and expose the same API, so you can start on one and move to the other.

⁠Already running this image? Move to Cloud in one command

npm install -g @meilisearch/cli
meili teleport

meili teleport creates your Meilisearch Cloud account if you do not have one, creates a project on the free trial, and copies your data to it. It works with a local or a production instance, v1.16 or later. See Migrating to Meilisearch Cloud⁠.

⁠Quick start

Run Meilisearch and keep its data in a local folder:

docker run -it --rm \
  -p 7700:7700 \
  -v $(pwd)/meili_data:/meili_data \
  getmeili/meilisearch:latest

Add documents:

curl -X POST "http://localhost:7700/indexes/movies/documents" \
  -H 'Content-Type: application/json' \
  --data-binary '[
    { "id": 1, "title": "Carol", "genres": ["Romance", "Drama"] },
    { "id": 2, "title": "Wonder Woman", "genres": ["Action", "Adventure"] },
    { "id": 3, "title": "Life of Pi", "genres": ["Adventure", "Drama"] }
  ]'

Search, typo included:

curl -X POST "http://localhost:7700/indexes/movies/search" \
  -H 'Content-Type: application/json' \
  --data-binary '{ "q": "wondre woman" }'

Meilisearch returns Wonder Woman despite the typo. Indexing is asynchronous, so if the search comes back empty, wait a moment and retry.

⁠Running in production

Set a master key of at least 16 bytes and the production environment. Without a master key, anyone who can reach the port can read and change your data.

docker run -d \
  -p 7700:7700 \
  -e MEILI_ENV='production' \
  -e MEILI_MASTER_KEY='A_MASTER_KEY_OF_AT_LEAST_16_BYTES' \
  -v $(pwd)/meili_data:/meili_data \
  getmeili/meilisearch:v1.58

In production you are also responsible for:

  • Pinning a version. Use a version tag instead of latest, so every machine runs the same release.
  • Upgrades. Moving to a new release can require exporting and importing your data. See Update Meilisearch⁠.
  • Backups. Schedule snapshots⁠ or export dumps⁠.
  • HTTPS, monitoring, and scaling. Put a reverse proxy in front of the container and watch memory and disk.

Meilisearch Cloud takes care of all of the above. Start a 14-day free trial⁠, or move an existing instance with meili teleport.

⁠Configuration

  • Data: the working directory is /meili_data, and the database is stored in /meili_data/data.ms. Mount a volume there to keep your data.
  • Options: pass any instance option as an environment variable with -e, for example MEILI_MASTER_KEY or MEILI_ENV, or as a command-line argument after the image name. See the configuration reference⁠.
  • Tags: every release has its own tag. latest follows the most recent release.

Full guide: Using Meilisearch with Docker⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:159db8c79…
Size
103.7 MB
Last updated
5 days ago
docker pull getmeili/meilisearch:latest