-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.8 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
44
45
46
47
48
49
50
51
52
53
version: "2"
services:
elasticsearch-development:
build:
context: ./elastic
dockerfile: Dockerfile.opendistro-es
environment:
- discovery.type=single-node
#- cluster.name=odfe-cluster
#- node.name=elasticsearch
#- discovery.seed_hosts=elasticsearch
#- cluster.initial_master_nodes=elasticsearch
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- es-data-development:/usr/share/elasticsearch/data
- ./elastic/backup:/mount/backup
ports:
- 9200:9200
elasticsearch-test:
build:
context: ./elastic
dockerfile: Dockerfile.opendistro-es
environment:
- discovery.type=single-node
#- cluster.name=odfe-cluster
#- node.name=elasticsearch
#-discovery.seed_hosts=elasticsearch
#- cluster.initial_master_nodes=elasticsearch
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- es-data-test:/usr/share/elasticsearch/data
- ./elastic/backup:/mount/backup
ports:
- 9201:9200
volumes:
es-data-development:
es-data-test: