forked from CSIRO-enviro-informatics/loci-integration-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.es.yml
52 lines (48 loc) · 1.39 KB
/
docker-compose.es.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
44
45
46
47
48
49
50
51
52
version: '3.7'
services:
esloader:
build: ./search
environment:
#full set of labels
- S3_LABEL_TARBALL=http://loci-assets.s3.ap-southeast-2.amazonaws.com/location_labels/loc-labels-es-json_20200603.tar.gz
#test set of labels
#- S3_LABEL_TARBALL=http://loci-assets.s3.ap-southeast-2.amazonaws.com/location_labels/loc-labels-es-json-testdata.tar.gz
command: sh -c './wait-for-it.sh elasticsearch:9200 -t 0 -- ./load_es.sh'
#command: tail -f /dev/null
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.1
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "http.cors.allow-origin=*"
- "http.cors.enabled=true"
- "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
- "http.cors.allow-credentials=true"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
# networks:
# - esnet
# kibana:
# image: docker.elastic.co/kibana/kibana:6.3.1
# ports:
# - 5601:5601
# environment:
# - "SERVER_NAME=localhost"
# - xpack.security.enabled=false
# networks:
# - esnet
volumes:
esdata1:
driver: local
#networks:
# default: