I'm trying to integrate MeiliSearch in my Laravel project using their official package for Laravel scout. Am using Laradock as a development environment and it has a pre-installed Meilisearch docker image.
I couldn't find anything that explains how to achieve this and here is where got lost, whenever I try to access MeiliSearch host -> http://localhost:7700 from Laradock workspace container it returns Connection refused but it works fine when trying to access it from my computer bash
I just figured it out after reading how networking works in docker
it turns out I have to use meilisearch instead of localhost in my host address
from
MEILISEARCH_HOST=http://localhost:7700
to
MEILISEARCH_HOST=http://meilisearch:7700
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.