# Docker Compose file for development purposes.
# Can be used to set up a local instance of Solr.

version: "2"
services:

  solr:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8983:8983"
# Docker Compose file for development purposes.
# Can be used to set up a local instance of Solr.

version: "2"
services:

  solr:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8983:8983"
    volumes:
      - solr-data:/opt/solr/server/solr/data

volumes:
  solr-data:

Add a solr-data volume to the compose file
Add a solr-data volume to the compose file

So that index data is preserved when the container is recreated.
