MeiliSearch
About
MeiliSearch is an open source lightweight alternative to ElasticSearch, giving developers blazingly fast and relevant search results in their application.
Installation & Basic Usage
Please see the Introduction & Concepts, then reference the examples below on adding this service to your project.
docker-compose.yml
Base: Add this section to your main docker-compose.yml
file, which will act as a "base". All environments will reference this file, so you can simply manage everything from one location.
meilisearch:
image: getmeili/meilisearch
environment:
MEILI_NO_ANALYTICS: "true"
See the official MeiliSearch DockerHub page for specific version references.
docker-compose.dev.yml
Development: meilisearch:
networks:
- web-dev
volumes:
- ./_volumes/meilisearch/data.ms:/data.ms:cached
# Example dependencies for other services. Remove below if not needed
depends_on:
- "mariadb"
- "php"
Persistent storage
All persistent storage will be located in a ./_volumes/
folder on your project.
.gitignore
Add this to your /_volumes/*
Networks
If you copy and paste from above, be sure to define your network at the bottom of the file.
networks:
web-dev:
Real-life example
See our open source project called Financial Freedom for more examples.