This Docker project creates a local Solr Cloud cluster (Solr + ZooKeeper) which can be used in an ICM 7.10 development environment.
- clone this repository;
- copy/rename the
.env.sample
file to.env
; - if needed, adjust the configuration in the
.env
file (ports, etc.); - run
docker compose up -d
to create and start the cluster - add this to your
hosts
file:
127.0.0.1 solr1
- configure the ICM application server as explained here
- configure Solr basic authentication for the ICM application server (see here) or disable it entirely (see below for details)
This Solr cluster will use the Basic Authentication Plugin (which is enabled by default). Users will be required to enter their credentials before accessing the Solr Admin page.
The configuration file solr/docker-entrypoint-initdb.d/security-sample.json
will create 2 users:
username | password | notes |
---|---|---|
solr |
SolrRocks |
admin rights |
intershop |
intershop |
You can customize this JSON file to use different credentials.
Solr basic authentication can be disabled by removing the solr/docker-entrypoint-initdb.d
directory entirely and by adding this to the solr1
service in the docker-compose.yml
:
command: ["-Dsolr.disableConfigSetsCreateAuthChecks=true"]