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