Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About elasticsearch on laradock #2323

Closed
TonyZhang128 opened this issue Oct 12, 2019 · 2 comments
Closed

About elasticsearch on laradock #2323

TonyZhang128 opened this issue Oct 12, 2019 · 2 comments
Labels

Comments

@TonyZhang128
Copy link

.env
SCOUT_DRIVER=Matchish\ScoutElasticSearch\Engines\ElasticSearchEngine
ELASTICSEARCH_HOST=localhost:9200

Issues
I want to use elasticsearch on Laradock ,but after importing indexs, I met a problem on connecting to elasticsearch. My PHP project's .env is above. I thought elasticsearch's host is localhost:9200 same as my local. However, I can't connect to elasticsearch anway.

In consideration of Laravel has it own ports and connects, I consider Laradock has setted their connects and host. Imitate that mysql's host in document is setted in mysql strangely, I also set elasticsearch's HOST on elasticsearch. What's a magic! I connects to elasticsearch finally!

This is my PHP project's final .env
.env
SCOUT_DRIVER=Matchish\ScoutElasticSearch\Engines\ElasticSearchEngine
ELASTICSEARCH_HOST=elasticsearch

@stale
Copy link

stale bot commented Feb 7, 2020

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Feb 7, 2020
@stale
Copy link

stale bot commented Feb 28, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant