-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose-import-export_3nodes.yml
executable file
·58 lines (54 loc) · 1.46 KB
/
docker-compose-import-export_3nodes.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
54
55
56
57
58
version: '2'
services:
esnode1:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.2
container_name: cartav-esnode1
environment:
- cluster.name=cartav-cluster
- bootstrap.memory_lock=true
- path.repo=/home
- "ES_JAVA_OPTS=-Xms1536m -Xmx1536m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 3g
volumes:
- /data/bases/cartav/node1:/usr/share/elasticsearch/data
- /data/bases/cartav/backup/:/home
esnode2:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.2
container_name: cartav-esnode2
environment:
- cluster.name=cartav-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1536m -Xmx1536m"
- path.repo=/home
- "discovery.zen.ping.unicast.hosts=esnode1"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 3g
volumes:
- /data/bases/cartav/node2:/usr/share/elasticsearch/data
esnode3:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.2
container_name: cartav-esnode3
environment:
- cluster.name=cartav-cluster
- bootstrap.memory_lock=true
- path.repo=/home
- "ES_JAVA_OPTS=-Xms1536m -Xmx1536m"
- "discovery.zen.ping.unicast.hosts=esnode1"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 3g
volumes:
- /data/bases/cartav/node3:/usr/share/elasticsearch/data
networks:
default:
external:
name: matchid