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.

16 lines
412 B

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