0

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

kenean50
  • 518
  • 5
  • 13

1 Answers1

5

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
kenean50
  • 518
  • 5
  • 13