Create Sphinx Search service in docker container.
643
This docker file is build up to run the Sphinx search engine. For more info, please visit the Sphinx site below.
You can either launch the docker in your local docker instance or put it into your docker swarm.
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
sphinx.conf and fill up database credentials, eg. host, user name, password, etc. More info: sphinx.conf options referencemkdir index.docker compose up -d.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.confContent type
Image
Digest
Size
138.4 MB
Last updated
over 5 years ago
docker pull casit/sphinxsearch