docker/templates/sphinxsearch
2017-01-30 11:35:09 +01:00
..
cron-sphinxsearch Envoi des éléments docker des serveurs 2017-01-30 11:35:09 +01:00
Dockerfile Envoi des éléments docker des serveurs 2017-01-30 11:35:09 +01:00
logrotate-sphinxsearch Envoi des éléments docker des serveurs 2017-01-30 11:35:09 +01:00
README Envoi des éléments docker des serveurs 2017-01-30 11:35:09 +01:00
run.sh Envoi des éléments docker des serveurs 2017-01-30 11:35:09 +01:00
sdsphinx.tar.gz Envoi des éléments docker des serveurs 2017-01-30 11:35:09 +01:00
supervisord.conf Envoi des éléments docker des serveurs 2017-01-30 11:35:09 +01:00

Sphinx Search Engine in Docker
==============================

Build
-----
docker build -t scores/sphinxsearch:version .


Launch
------

Exemple d'un fichier docker-compose.yml

sphinx:
 container_name: sphinx
 image: scores/sphinxsearch
 ports:
 - "9306:9306"
 - "9312:9312"
 mem_limit: 17196646400
 volumes:
 - /media/disk02/sphinxsearch/data:/var/lib/sphinxsearch
 log_driver: "json-file"
 log_opt:
  max-size: "500m"
  max-file: "9"
 environment:
  MYSQL_HOST: 192.168.78.249
  MYSQL_USER: sphinx
  MYSQL_PASS: indexer
  SLAVE: 1
  INDEX_ACT: 1
  INDEX_CIBLAGE: 1
  INDEX_DIR: 1
  INDEX_ENT: 1
  INDEX_DIR: 1
  INDEX_HISTO: 1

  
Configuration crontab
---------------------

Find the volume where crontab is store <...>/cron.d/sphinxsearch

Uncomment the lines for which there must be an execution 

docker-compose stop sphinx
docker-compose start sphinx