From ef527bbab6a59a1eeff718ad19c5b735c2242f22 Mon Sep 17 00:00:00 2001 From: Mgor Date: Wed, 8 Jul 2020 12:25:23 +0200 Subject: [PATCH] Add MeiliSearch Container --- DOCUMENTATION/content/documentation/index.md | 12 ++++++++++++ docker-compose.yml | 13 +++++++++++++ env-example | 5 +++++ 3 files changed, 30 insertions(+) diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md index 4526750..d711991 100644 --- a/DOCUMENTATION/content/documentation/index.md +++ b/DOCUMENTATION/content/documentation/index.md @@ -1225,7 +1225,19 @@ docker-compose restart elasticsearch ``` +
+ +## Use MeiliSearch +1 - Run the MeiliSearch Container (`meilisearch`) with the `docker-compose up` command. Example: + +```bash +docker-compose up -d meilisearch +``` + +2 - Open your browser and visit the localhost on port **7700** at the following URL: `http://localhost:7700` + +> The private API key is `masterkey` diff --git a/docker-compose.yml b/docker-compose.yml index 9ca6ada..4dd89df 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,6 +37,8 @@ volumes: driver: ${VOLUMES_DRIVER} caddy: driver: ${VOLUMES_DRIVER} + meilisearch: + driver: ${VOLUMES_DRIVER} elasticsearch: driver: ${VOLUMES_DRIVER} mosquitto: @@ -812,6 +814,17 @@ services: - frontend - backend +### MeiliSearch ########################################## + meilisearch: + image: getmeili/meilisearch:latest + volumes: + - ${DATA_PATH_HOST}/meilisearch:/var/lib/meilisearch + ports: + - "${MEILISEARCH_HOST_PORT}:7700" + networks: + - frontend + - backend + ### ElasticSearch ######################################## elasticsearch: build: diff --git a/env-example b/env-example index a389148..ef13d64 100644 --- a/env-example +++ b/env-example @@ -367,6 +367,11 @@ RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671 RABBITMQ_DEFAULT_USER=guest RABBITMQ_DEFAULT_PASS=guest +### MEILISEARCH ########################################### + +MEILISEARCH_HOST_PORT=7700 +MEILISEARCH_KEY=masterkey + ### ELASTICSEARCH ######################################### ELASTICSEARCH_HOST_HTTP_PORT=9200