Initially I used the Solr standard settings but with a big amout of data, I was running out of heap space. Fortunatly it is possible to define the heap space with the SOLR_HEAP environment variable.

If you also don’t want to risk to loose your data you should also map the volume /opt/solr/server/solr/mycores

Here is the docker-compose.yml file that I am using:

version: '3.1'
services:
  solr:
    image: "solr:alpine"
    ports:
    - "8983:8983"
    volumes:
    - /srv/solr:/opt/solr/server/solr/mycores
    environment:
    - SOLR_HEAP=1G
    entrypoint:
    - docker-entrypoint.sh
    - solr-precreate
    - mycore
    restart: always


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *