All Projects → nahidulhasan → Laravel Docker Elasticsearch

nahidulhasan / Laravel Docker Elasticsearch

This is a simple repo for practicing elasticsearch with laravel and docker.

Projects that are alternatives of or similar to Laravel Docker Elasticsearch

Docker Stacks
DECK is a powerful and high performant local web development studio unlike any other.
Stars: ✭ 376 (+1988.89%)
Mutual labels:  laravel, docker-compose
Laravel Scout Elasticsearch
Search among multiple models with ElasticSearch and Laravel Scout
Stars: ✭ 423 (+2250%)
Mutual labels:  elasticsearch, laravel
Laravel Scout Elastic Demo
笑来搜原型 Laravel Scout & ElasticSearch ik
Stars: ✭ 403 (+2138.89%)
Mutual labels:  elasticsearch, laravel
Lnmp
💻 🐳 🐘 🐬 🐧 🚀 Start Docker LNMP(LEMP) In less than 2 minutes Powered by Docker Compose. 让 PHP 开发者快速(一键)搭建基于容器技术(Docker、Kubernetes)的开发、测试、生产(CI/CD by Drone)环境.
Stars: ✭ 341 (+1794.44%)
Mutual labels:  laravel, docker-compose
Docker2saas
An open source tool that lets you create a SaaS website from docker images in 10 minutes.
Stars: ✭ 498 (+2666.67%)
Mutual labels:  laravel, docker-compose
Stacker
Stacker - The environment for local web development, ready for use.
Stars: ✭ 356 (+1877.78%)
Mutual labels:  laravel, docker-compose
Pfelk
pfSense/OPNsense + ELK
Stars: ✭ 417 (+2216.67%)
Mutual labels:  elasticsearch, docker-compose
Docker Elk
The Elastic stack (ELK) powered by Docker and Compose.
Stars: ✭ 12,327 (+68383.33%)
Mutual labels:  elasticsearch, docker-compose
Phpmyfaq
phpMyFAQ - Open Source FAQ web application for PHP and MySQL, PostgreSQL and other databases
Stars: ✭ 494 (+2644.44%)
Mutual labels:  elasticsearch, docker-compose
Plastic
Plastic is an Elasticsearch ODM and mapper for Laravel. It renders the developer experience more enjoyable while using Elasticsearch, by providing a fluent syntax for mapping, querying, and storing eloquent models.
Stars: ✭ 494 (+2644.44%)
Mutual labels:  elasticsearch, laravel
Candy Api
GetCandy E-Commerce API
Stars: ✭ 339 (+1783.33%)
Mutual labels:  elasticsearch, laravel
Laravel Boilerplate
Laravel Boilerplate / Starter Kit with Gentelella Admin Theme
Stars: ✭ 704 (+3811.11%)
Mutual labels:  laravel, docker-compose
Springy Store Microservices
Springy Store is a conceptual simple μServices-based project using the latest cutting-edge technologies, to demonstrate how the Store services are created to be a cloud-native and 12-factor app agnostic. Those μServices are developed based on Spring Boot & Cloud framework that implements cloud-native intuitive, design patterns, and best practices.
Stars: ✭ 318 (+1666.67%)
Mutual labels:  elasticsearch, docker-compose
Elasticsearch
The missing elasticsearch ORM for Laravel, Lumen and Native php applications
Stars: ✭ 375 (+1983.33%)
Mutual labels:  elasticsearch, laravel
Microservices Sample
Sample project to create an application using microservices architecture
Stars: ✭ 167 (+827.78%)
Mutual labels:  elasticsearch, docker-compose
Docker Laravel
🐳 Build a simple laravel development environment with docker-compose.
Stars: ✭ 415 (+2205.56%)
Mutual labels:  laravel, docker-compose
Docker offensive elk
Elasticsearch for Offensive Security
Stars: ✭ 112 (+522.22%)
Mutual labels:  elasticsearch, docker-compose
Elastic Docker
Example setups for Elasticsearch, Kibana, Logstash, and Beats with docker-compose
Stars: ✭ 118 (+555.56%)
Mutual labels:  elasticsearch, docker-compose
Ambientum
Docker native solution for running Laravel projects. From Development to Production
Stars: ✭ 487 (+2605.56%)
Mutual labels:  laravel, docker-compose
Docker Compose Elasticsearch Kibana
Docker Compose for Elasticsearch and Kibana
Stars: ✭ 584 (+3144.44%)
Mutual labels:  elasticsearch, docker-compose

Laravel-docker-elasticsearch

This is a simple repo for practicing elasticsearch with laravel and docker.

What is Elasticsearch?

Elasticsearch is an open-source, RESTful, distributed search and analytics engine built on Apache Lucene. Since the first version of Elasticsearch was released in 2010, it has quickly become the most popular search engine, and is commonly used for log analytics, full-text search, and operational intelligence use cases.

In this repo you will get how you will use elasticsearch with laravel and docker.

First you have to add elastic search image in docker-compose file.

For Example :

elasticsearch:
      image: elasticsearch
      ports:
          - "9200:9200"

Before running docker compose you have to sure that docker memory size >= 4.0 GB. Otherwise, the elastic search will not run properly.

Now you have to update composer.json file.


"require": {      
        "elasticsearch/elasticsearch": "^5.2"  
    }

All the above things I have done in this repo. For running this project just follow the following step:

clone the repo 

From the project directory run the following command:

composer update

Now increase docker memory size, restart docker and run the following commands

docker-compose build

docker-compose up -d

Now run the migration commmand:

php artisan migrate

Now you can brows the project and create post from this url

http://localhost:9000/posts/create

Now you can search using elastic search. In app elastic folder you will get elastic class. Here I have implement elastic client.

If you want to add demo data for Post then run the following command:

docker-compose exec php php artisan tinker

factory(App\Post::class, 50)->create();
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].