-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (42 loc) · 1.52 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3.3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION:?You need to set ES version in file docker.env which has a .env symlink.}
command:
- /bin/sh
- -c
- "export PATH=/usr/share/elasticsearch/bin:$PATH ;
gzip -cd /usr/share/elasticsearch/config/analysis/synonyms/all_autophrases.txt.gz > /usr/share/elasticsearch/config/analysis/synonyms/all_autophrases.txt ;
gzip -cd /usr/share/elasticsearch/config/analysis/synonyms/all_synonyms.txt.gz > /usr/share/elasticsearch/config/analysis/synonyms/all_synonyms.txt ;
/usr/local/bin/docker-entrypoint.sh"
container_name: elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- cluster.routing.allocation.disk.threshold_enabled=false
- xpack.security.enabled=false
- xpack.ml.enabled=false
- xpack.watcher.enabled=false
- http.max_content_length=500mb
- indices.lifecycle.poll_interval=10s
- "ES_JAVA_OPTS=-Xms2g -Xmx2g -XX:ParallelGCThreads=2"
ports:
- 9200:9200
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- ./data/synonyms:/usr/share/elasticsearch/config/analysis/synonyms
kibana:
image: docker.elastic.co/kibana/kibana:${ELASTIC_VERSION}
container_name: kibana
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
depends_on:
- elasticsearch
ports:
- 5601:5601