anybox/solr
Obviously this image is deprecated and you may consider upgrading to a recent version of solr using official image.
It was created for convenience while transferring existing old environment to the new without any change on existing services.
IMPORTANT: All entry points are not properly tested nor working as mentioned in the official image.
Basics configuration using example collection1 to move in an expected place may looks like
docker-compose.yml:
version: '3'
services:
solr:
image: docker.io/anybox/solr:4
environment:
SOLR_HOME: /opt/solr/server/solr
INIT_SOLR_HOME: "yes"
ports:
- 8983:8983
volumes:
- solrdata:/opt/solr/server
networks:
lesechos_etudes:
aliases:
- etu-django-solr-staging
volumes:
solrdata:
Then prepare and use it:
# create container
docker-compose
# prepare volume using examples
docker-compose create solr
docker cp solr_container:/opt/solr/example/solr /path/to/solrdata/volume
# use the wanted schema.xml
vim /path/to/solrdata/volume/solr/collection1/conf/schema.xml
# make sure files are owned by the expected user
sudo chown -R 8983:8983 /path/to/solrdata/volume
# start service
docker-compose up -d
you can visit http://localhost:8983
docker pull anybox/solr