You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
428 B

version: '3.6'
services:
sphinx:
build: ./dockerfiles/sphinx
restart: always
depends_on:
- db
command: sh -c 'searchd -c /etc/sphinxsearch/sphinx.conf & sleep 10 && while true; do indexer --rotate --all; sleep 7200; done'
volumes:
- ./config/sphinx:/etc/sphinxsearch
- ./log/sphinx:/var/log/sphinxsearch
- sphinx:/var/lib/sphinx/data
expose:
- "9306"
volumes:
sphinx: