Skip to content

Commit

Permalink
Add Manticore Search (laradock#2036)
Browse files Browse the repository at this point in the history
* Add Manticore Search
  • Loading branch information
adriannuta authored and bestlong committed Mar 6, 2019
1 parent 6c8adbc commit 8ca26e6
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ env:
- PHP_VERSION=NA BUILD_SERVICE="adminer phpmyadmin pgadmin"
- PHP_VERSION=NA BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 haproxy"
- PHP_VERSION=NA BUILD_SERVICE="kibana grafana laravel-echo-server"
- PHP_VERSION=NA BUILD_SERVICE="ipython-controller"
- PHP_VERSION=NA BUILD_SERVICE="ipython-controller manticore"
# - PHP_VERSION=NA BUILD_SERVICE="aws"

# Installing a newer Docker version
Expand Down
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1400,3 +1400,18 @@ services:
- "${COUCHDB_PORT}:5984"
networks:
- backend

### Manticore Search ###########################################
manticore:
build:
context: ./manticore
volumes:
- ${MANTICORE_CONFIG_PATH}:/etc/sphinxsearch
- ${DATA_PATH_HOST}/manticore/data:/var/lib/manticore/data
- ${DATA_PATH_HOST}/manticore/log:/var/lib/manticore/log
ports:
- "${MANTICORE_API_PORT}:9312"
- "${MANTICORE_SPHINXQL_PORT}:9306"
- "${MANTICORE_HTTP_PORT}:9308"
networks:
- backend
7 changes: 7 additions & 0 deletions env-example
Original file line number Diff line number Diff line change
Expand Up @@ -658,3 +658,10 @@ MOSQUITTO_PORT=9001
### COUCHDB ###################################################

COUCHDB_PORT=5984

### Manticore Search ##########################################

MANTICORE_CONFIG_PATH=./manticore/config
MANTICORE_API_PORT=9312
MANTICORE_SPHINXQL_PORT=9306
MANTICORE_HTTP_PORT=9308
5 changes: 5 additions & 0 deletions manticore/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM manticoresearch/manticore

EXPOSE 9306
EXPOSE 9308
EXPOSE 9312
25 changes: 25 additions & 0 deletions manticore/config/sphinx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
index testrt {
type = rt
rt_mem_limit = 128M
path = /var/lib/manticore/data/testrt
rt_field = title
rt_field = content
rt_attr_uint = gid
}

searchd {
listen = 9312
listen = 9308:http
listen = 9306:mysql41
log = /var/lib/manticore/log/searchd.log
# you can also send query_log to /dev/stdout to be shown in docker logs
query_log = /var/lib/manticore/log/query.log
read_timeout = 5
max_children = 30
pid_file = /var/run/searchd.pid
seamless_rotate = 1
preopen_indexes = 1
unlink_old = 1
binlog_path = /var/lib/manticore/data
}

0 comments on commit 8ca26e6

Please sign in to comment.