51 lines
862 B
Plaintext
Executable File
51 lines
862 B
Plaintext
Executable File
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
|
|
|
|
|