SphinxSearch 2.2 container, with a web application to rotate indexes
1.6K
This container, based on Ubuntu 14.04, launches SphinxSearch in the foreground, and a go based web application in the background, which accepts requests to rotate indexes:
http://<address>:8080/rotate/<index>
Call with --all to rotate all indexes in your configuration file:
http://<address>:8080/rotate/--all
Launch this container from docker-compose:
sphinxsearch:
image: rpowered/sphinxsearch
container_name: sphinxsearch
network_mode: "bridge"
volumes:
- /etc/sphinxsearch:/etc/sphinxsearch
- /var/lib/sphinxsearch/data:/var/lib/sphinxsearch/data
This allows your configuration and data to be stored on your host. The web application listens on port 8080.
You can test indexing by connecting to the running container and running from the command line:
docker exec -it sphinxsearch bash
curl localhost:8080/rotate/--all
SphinxSearch will not start if there are no indexs available, so temporarily create a sphinxsearch container and index everything in the configuration file. Once complete, you can start the container normally, as above.
docker run --volume=/etc/sphinxsearch:/etc/sphinxsearch --volume=/var/lib/sphinxsearch/data:/var/lib/sphinxsearch/data -it --rm rpowered/sphinxsearch 'indexer --all'
Once running, you can add new indexes, connect to the container, and build the indexes as you need.
Content type
Image
Digest
Size
226.5 MB
Last updated
over 9 years ago
docker pull rpowered/sphinxsearch