Skip to content

Commit 8ca26e6

Browse files
adriannutabestlong
authored andcommitted
Add Manticore Search (laradock#2036)
* Add Manticore Search
1 parent 6c8adbc commit 8ca26e6

5 files changed

Lines changed: 53 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333
- PHP_VERSION=NA BUILD_SERVICE="adminer phpmyadmin pgadmin"
3434
- PHP_VERSION=NA BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 haproxy"
3535
- PHP_VERSION=NA BUILD_SERVICE="kibana grafana laravel-echo-server"
36-
- PHP_VERSION=NA BUILD_SERVICE="ipython-controller"
36+
- PHP_VERSION=NA BUILD_SERVICE="ipython-controller manticore"
3737
# - PHP_VERSION=NA BUILD_SERVICE="aws"
3838

3939
# Installing a newer Docker version

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,3 +1400,18 @@ services:
14001400
- "${COUCHDB_PORT}:5984"
14011401
networks:
14021402
- backend
1403+
1404+
### Manticore Search ###########################################
1405+
manticore:
1406+
build:
1407+
context: ./manticore
1408+
volumes:
1409+
- ${MANTICORE_CONFIG_PATH}:/etc/sphinxsearch
1410+
- ${DATA_PATH_HOST}/manticore/data:/var/lib/manticore/data
1411+
- ${DATA_PATH_HOST}/manticore/log:/var/lib/manticore/log
1412+
ports:
1413+
- "${MANTICORE_API_PORT}:9312"
1414+
- "${MANTICORE_SPHINXQL_PORT}:9306"
1415+
- "${MANTICORE_HTTP_PORT}:9308"
1416+
networks:
1417+
- backend

env-example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,3 +658,10 @@ MOSQUITTO_PORT=9001
658658
### COUCHDB ###################################################
659659

660660
COUCHDB_PORT=5984
661+
662+
### Manticore Search ##########################################
663+
664+
MANTICORE_CONFIG_PATH=./manticore/config
665+
MANTICORE_API_PORT=9312
666+
MANTICORE_SPHINXQL_PORT=9306
667+
MANTICORE_HTTP_PORT=9308

manticore/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM manticoresearch/manticore
2+
3+
EXPOSE 9306
4+
EXPOSE 9308
5+
EXPOSE 9312

manticore/config/sphinx.conf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
index testrt {
2+
type = rt
3+
rt_mem_limit = 128M
4+
path = /var/lib/manticore/data/testrt
5+
rt_field = title
6+
rt_field = content
7+
rt_attr_uint = gid
8+
}
9+
10+
searchd {
11+
listen = 9312
12+
listen = 9308:http
13+
listen = 9306:mysql41
14+
log = /var/lib/manticore/log/searchd.log
15+
# you can also send query_log to /dev/stdout to be shown in docker logs
16+
query_log = /var/lib/manticore/log/query.log
17+
read_timeout = 5
18+
max_children = 30
19+
pid_file = /var/run/searchd.pid
20+
seamless_rotate = 1
21+
preopen_indexes = 1
22+
unlink_old = 1
23+
binlog_path = /var/lib/manticore/data
24+
}
25+

0 commit comments

Comments
 (0)