Docker with Solr Cloud Integration

The recommended Drupal local development environment for Linux, macOS, and Windows is DDEV. Follow the instructions to install Drupal using DDEV for local development.

DDEV has a SOLR add-on suitable for local development.

The purpose of this guide is to document a useful local Docker compose environment which includes the Solr search environment and simple geolocation related services.  I found it useful when learning how Drupal works in a Docker environment and hopefully you do to.

Introduction

This guide is documenting a simple Docker stack including Solr for search indexing

Docker Configuration

Docker-compose files, Dockerfile and apache configuration files

Configure Drupal to contact the Solr Container

Adds a server to the Search API configuration to contact Solr.

Create a Plain Text Search for Umami Demo Data in Solr

This page describes how to make a plain text search page using the Umami demo data and the search api solr back end.

Create Location Content to be Indexed by Solr

Create the Location content type

Create a Search API Index for Location Data in Solr

For content to be searchable, Search API needs an index defined for Solr

Conclusion

The world is your oyster