-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
docker-compose.yml
61 lines (61 loc) · 1.72 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
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION:-7.17.1}
hostname: elasticsearch
environment:
- cluster.name=elasticsearch
- bootstrap.memory_lock=true
- discovery.type=single-node
# - http.publish_host=localhost
# - http.host=0.0.0.0
# - transport.host=127.0.0.1
# - network.host=_local_
- network.publish_host=127.0.0.1
- logger.org.elasticsearch=warn
- xpack.security.enabled=false
- path.repo=/usr/share/elasticsearch/backup
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
nproc: 65536
nofile:
soft: 65536
hard: 65536
memlock:
soft: -1
hard: -1
volumes:
- ./data/backup:/usr/share/elasticsearch/backup
ports:
- 9200:9200
platinum:
image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION:-7.17.1}
hostname: elasticsearch-platinum
environment:
- cluster.name=platinum
- bootstrap.memory_lock=true
- discovery.type=single-node
- xpack.license.self_generated.type=trial
- xpack.security.enabled=true
- xpack.watcher.enabled=true
# - http.publish_host=localhost
# - http.host=0.0.0.0
# - transport.host=127.0.0.1
# - network.host=_local_
- http.port=9210
- network.publish_host=127.0.0.1
- logger.org.elasticsearch=warn
- path.repo=/usr/share/elasticsearch/backup
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- ELASTIC_PASSWORD=elastic
ulimits:
nproc: 65536
nofile:
soft: 65536
hard: 65536
memlock:
soft: -1
hard: -1
volumes:
- ./data/backup:/usr/share/elasticsearch/backup
ports:
- 9210:9210