Sign inSign up

casit/sphinxsearch

By casit

•Updated almost 2 years ago

Create Sphinx Search service in docker container.

Image
0

643

casit/sphinxsearch repository overview

⁠Introduction

This docker file is build up to run the Sphinx search engine. For more info, please visit the Sphinx site below.

⁠Sphinx Project

Sphinx

⁠Configurations

You can either launch the docker in your local docker instance or put it into your docker swarm.

⁠Docker Compose

Copy or edit configurations below to use in your environment.

version: "3.5"

services:
  engine:
    image: casit/sphinxsearch:3.3.1
    ports:
      - 9306:9306
      - 9312:9312
    volumes:
      - ./index:/opt/sphinx/index
      - ./sphinx.conf:/opt/sphinx/conf/sphinx.conf
    deploy:
      resources:
        limits:
          cpus: '0.5'
          memory: 1024M
        reservations:
          cpus: '0.05'
          memory: 512M # match indexer.value from sphinx.conf

⁠Commands

⁠Startup

  • Edit the file sphinx.conf and fill up database credentials, eg. host, user name, password, etc. More info: sphinx.conf options reference⁠
  • Create a directory : mkdir index.
  • Run the docker container docker compose up -d.

⁠To Re-Index

Do this every time you change the sphinx.conf file.

  • docker exec -it container_id bash into the docker container and run command: indexer --rotate --all --config /opt/sphinx/conf/sphinx.conf

Tag summary

Content type

Image

Digest

Size

138.4 MB

Last updated

over 5 years ago

docker pull casit/sphinxsearch