Browse Source

Add MeiliSearch Container

Mgor 4 years ago
parent
commit
ef527bbab6
3 changed files with 30 additions and 0 deletions
  1. 12 0
      DOCUMENTATION/content/documentation/index.md
  2. 13 0
      docker-compose.yml
  3. 5 0
      env-example

+ 12 - 0
DOCUMENTATION/content/documentation/index.md

@@ -1225,7 +1225,19 @@ docker-compose restart elasticsearch
 ```
 
 
+<br>
+<a name="Use-MeiliSearch"></a>
+## 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`
 
 
 

+ 13 - 0
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:

+ 5 - 0
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