Merge pull request #2651 from gmalz/master

Add MeiliSearch Container
This commit is contained in:
Shao Yu-Lung (Allen) 2020-07-19 01:51:16 +08:00 committed by GitHub
commit bb759d7b94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 0 deletions

View File

@ -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`

View File

@ -37,6 +37,8 @@ volumes:
driver: ${VOLUMES_DRIVER} driver: ${VOLUMES_DRIVER}
caddy: caddy:
driver: ${VOLUMES_DRIVER} driver: ${VOLUMES_DRIVER}
meilisearch:
driver: ${VOLUMES_DRIVER}
elasticsearch: elasticsearch:
driver: ${VOLUMES_DRIVER} driver: ${VOLUMES_DRIVER}
mosquitto: mosquitto:
@ -812,6 +814,17 @@ services:
- frontend - frontend
- backend - 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 ########################################
elasticsearch: elasticsearch:
build: build:

View File

@ -367,6 +367,11 @@ RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT=15671
RABBITMQ_DEFAULT_USER=guest RABBITMQ_DEFAULT_USER=guest
RABBITMQ_DEFAULT_PASS=guest RABBITMQ_DEFAULT_PASS=guest
### MEILISEARCH ###########################################
MEILISEARCH_HOST_PORT=7700
MEILISEARCH_KEY=masterkey
### ELASTICSEARCH ######################################### ### ELASTICSEARCH #########################################
ELASTICSEARCH_HOST_HTTP_PORT=9200 ELASTICSEARCH_HOST_HTTP_PORT=9200