-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (62 loc) · 1.71 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
54
55
56
57
58
59
60
61
62
63
# Only used for development environments to test in real-world data volumes
version: '3.4'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${STACK_VERSION:-7.10.2}
environment:
- node.name=es01
- cluster.name=${CLUSTER_NAME:-tdsearchclustername}
- cluster.initial_master_nodes=es01,es02
- discovery.seed_hosts=es02
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD:-pass}
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms${JVM_RAM:-512m} -Xmx${JVM_RAM:-512m}"
- network.host=0.0.0.0
volumes:
- esdata01:/usr/share/elasticsearch/data
ports:
- ${ES_PORT:-9201}:9200
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test:
[
"CMD-SHELL",
"curl -s http://localhost:9200 | grep -q 'missing authentication credentials'",
]
interval: 10s
timeout: 10s
retries: 120
es02:
depends_on:
- es01
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${STACK_VERSION:-7.10.2}
environment:
- node.name=es02
- cluster.name=${CLUSTER_NAME:-tdsearchclustername}
- cluster.initial_master_nodes=es01,es02
- discovery.seed_hosts=es01
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms${JVM_RAM:-512m} -Xmx${JVM_RAM:-512m}"
volumes:
- esdata02:/usr/share/elasticsearch/data
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test:
[
"CMD-SHELL",
"curl -s http://localhost:9200 | grep -q 'missing authentication credentials'",
]
interval: 10s
timeout: 10s
retries: 120
volumes:
esdata01:
driver: local
esdata02:
driver: local