services:
  solr9:
    image: solr:9.8
    ports:
      - "8983:8983"
    volumes:
      - ./cloud-config-set:/opt/solr/server/solr/configsets/drupal/conf
    environment:
      SOLR_MODULES: "extraction,langid,ltr,analysis-extras"
    command: bash -c "docker-entrypoint.sh solr start -c; solr create -c drupal -d server/solr/configsets/drupal/conf -n drupal; solr restart -c -f"
