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

  1. version: '3.6'
  2. services:
  3. sphinx:
  4. build: ./dockerfiles/sphinx
  5. restart: always
  6. depends_on:
  7. - db
  8. command: sh -c 'searchd -c /etc/sphinxsearch/sphinx.conf & sleep 10 && while true; do indexer --rotate --all; sleep 7200; done'
  9. volumes:
  10. - ./config/sphinx:/etc/sphinxsearch
  11. - ./log/sphinx:/var/log/sphinxsearch
  12. - sphinx:/var/lib/sphinx/data
  13. expose:
  14. - "9306"
  15. volumes:
  16. sphinx: