Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.35 KB

README.md

File metadata and controls

39 lines (34 loc) · 1.35 KB

Solr for Docker/Drupal

Local solr instance for Drupal Solr development

This image provides a quickstart basis for local Solr 7.x development in Drupal 8. It is unsuitable and not used in production - use the community image!

Getting Started

See newspapers.lib.unb.ca for an example of use. In your docker-compose.yml:

Single Core

drupal-solr-lib-unb-ca:
  image: ghcr.io/unb-libraries/solr-drupal:8.x-4.x
  ports:
  - "8983:8983"
  entrypoint:
  - docker-entrypoint.sh
  - solr-precreate
  - newspapers.lib.unb.ca
  - /solr-conf

where newspapers.lib.unb.ca is the name of the core you wish to create in Solr. By default the current 7.x schema from search_api_solr will be applied (from /solr-conf). If you need something different, extend this image and copy the files in their place.

Multiple Cores

drupal-solr-lib-unb-ca:
  image: ghcr.io/unb-libraries/solr-drupal:8.x-4.x
  ports:
  - "8983:8983"
  entrypoint:
  - docker-entrypoint-multiple.sh
  - newspapers.lib.unb.ca:/solr-conf
  - pages.newspapers.lib.unb.ca:/solr-conf

License