Learn how to use Docker to download and run Meilisearch, configure its behavior, and manage your Meilisearch data.
docker pull
command to download a Meilisearch image:
:
symbol. You can see the full list of available Meilisearch Docker images on Docker Hub.
latest
tag will always download the most recent Meilisearch release. Meilisearch advises against using it, as it might result in different machines running different images if significant time passes between setting up each one of them.docker run
to launch the Meilisearch image:
-e
argument to docker run
. The example below launches Meilisearch with a master key:
docker run
command explicitly launching the meilisearch
binary:
/meili_data
. This means the location of your database file is /meili_data/data.ms
.
-v
command-line option:
$(pwd)/meili_data
, which is a directory in the host machine. Depending on your OS, mounting volumes from the host to the container might result in performance loss and is only recommended when developing your application.
/meili_data/dumps
inside the volume you passed with -v
.
To import a dump, use Meilisearch’s --import-dump
command-line option and specify the path to the dump file. Make sure the path points to a volume reachable by Docker:
/meili_data/data.ms
in that volume before importing a dump.--schedule-snapshot
and --snapshot-dir
:
--snapshot-dir
should point to a folder inside the Docker working directory for Meilisearch, /meili_data
. Once generated, snapshots will be available in the configured directory.
To import a snapshot, launch Meilisearch with the --import-snapshot
option: