-
Notifications
You must be signed in to change notification settings - Fork 118
/
docker-compose.yml
41 lines (39 loc) · 1.01 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
version: "2"
services:
elasticsearch1:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.25
container_name: elasticsearch1
environment:
- node.name=elasticsearch1
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.seed_hosts=elasticsearch2
- cluster.initial_master_nodes=elasticsearch1,elasticsearch2
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
ports:
- 9200:9200
networks:
- esnet
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.25
environment:
- node.name=elasticsearch2
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.seed_hosts=elasticsearch1
- cluster.initial_master_nodes=elasticsearch1,elasticsearch2
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
networks:
- esnet
networks:
esnet: