Public | Automated Build

Last pushed: 3 years ago
Short Description
Run Solr 4.10.4 in a Docker container, and mount your core directory as a volume
Full Description


Usage with mounted volume:

  • Prepare your Solr cores directory so that it looks like this (be aware that you'll probably need more then just 'schema.xml'):

  • And configure your ../cores/solr.xml to look like this:

    <?xml version="1.0" encoding="UTF-8" ?>
    <solr persistent="false">
    <cores adminPath="/admin/cores" host="${host:}" hostPort="${jetty.port:8983}" hostContext="${hostContext:solr}">
      <core name="core0" instanceDir="core0" />
      <core name="core1" instanceDir="core1" />
      <core name="coreX" instanceDir="coreX" />
      <shardHandlerFactory name="shardHandlerFactory" class="HttpShardHandlerFactory">
        <str name="urlScheme">${urlScheme:}</str>
  • Then run:

    $ docker run -v /absolute/path/to/cores/:/opt/solr/config/cores/ -p "8983:8983" dirkmoors/solr
  • Then you can visit our browser at http://localhost:8983/solr/

  • Profit!

Docker Pull Command
Source Repository