version: '3' services: solr: image: solr:8 ports: - "8980:8983" volumes: - data:/var/solr command: - solr-precreate - gettingstarted volumes: data: