Giter Site home page Giter Site logo

docker-dovecot-solr's Introduction

Requirments

  1. docker-compose-plugin
  2. python3 (optional, for generating password hashes)

Quickstart

  1. Start the solr service

    docker compose up -d
    
  2. Configure dovecot to use solr for full text search (fts)

Authentication

By default Apache Solr is set up with open access to all.

There's an sample basic auth configuration you can use to protect this instance.

  1. Using var_solr/data/security-sample.json as a basis activate authentication in Solr by creating the security.json configuration file.

    cp var_solr/data/security-sample.json var_solr/data/security.json
    
  2. Generate auth credentials using the solr-password-hasher script in this repo.

    ./solr-passwd-hasher
    
  3. Take the last line of output from solr-passwd-hasher and update the .authentication.credentials.dovecot value in var_solr/data/security.json.

    You can create additional user/pass pairs by extending the credentials JSON object in var_solr/data/security.json.

  4. Configure Dovecot to use basic auth by updating the fts_solr URL.

    For example, where the connection without authentication is:

    fts_solr = url=http://localhost:8983/solr/dovecot/
    

    with authentication this would be:

    fts_solr = url=http://dovecot:password@localhost:8983/solr/dovecot/
    

Docker Compose Configuration

You can manage a couple of parameters in a local .env file that will be used by docker compose when starting up the container:

Variable Description
PORTS IP & port mapping for docker (defaults to 8983:8983)
JAVA_MIN_MEMORY Minimum heap size for the JVM (defaults to 512m)
JAVA_MAX_MEMORY Maxiumum heap size for the JVM (defaults to 512m)

docker-dovecot-solr's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.