Drupal 8 site with Docker + Solr search (docker4drupal by wodby)
This tutorial applies to docker4drupal by wodby.
PART 1: Install and configure Drupal 8 Search API Solr module
- Install Search API Solr module.
- After installing the module, configure Solr server.
- Go to Home > Administration > Configuration > Search and metadata > Search API
- Create a new server or edit an existing one and update the fields under CONFIGURE SOLR BACKEND field group
- HTTP protocol: http
- Solr host: solr
- Solr port: 8983
- Solr path: [empty]
- Solr core: [NAME OF YOUR CORE THAT WE WILL USE ON PART 2]
PART 2: Creating Solr core
- SSH to a runnig Solr container:
make shell solr
or
docker-compose exec solr sh
- Create Solr core
make create core=[core name that we want to use on PART 1] -f /usr/local/bin/actions.mk