Skip to content

Commit 254696a

Browse files
author
Marcin Kardas
committed
Add elasticsearch service
1 parent d71d9b3 commit 254696a

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

axcell/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
goldtags_dump = data / "dumps" / "goldtags-2019.10.15_2227.json.gz"
1616

1717

18-
elastic = dict(hosts=['localhost'], timeout=20)
18+
elastic = dict(hosts=['127.0.0.1'], timeout=20)
1919
grobid = dict(host='grobid')
2020

2121
arxiv = data/'arxiv'

docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: '3'
2+
services:
3+
# search engine
4+
elasticsearch:
5+
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.7.1
6+
entrypoint:
7+
- elasticsearch
8+
- -Ehttp.port=9200
9+
- -Etransport.host=localhost
10+
- -Ehttp.host=0.0.0.0
11+
- -Ebootstrap.system_call_filter=false
12+
- -Ehttp.cors.enabled=true
13+
- -Ehttp.cors.allow-origin=*
14+
- -Ehttp.cors.allow-headers=*
15+
- -Ehttp.cors.allow-credentials=true
16+
user: elasticsearch
17+
ports:
18+
- '127.0.0.1:9200:9200'

0 commit comments

Comments
 (0)