-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (79 loc) · 1.82 KB
/
docker-compose.yml
File metadata and controls
83 lines (79 loc) · 1.82 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '2.2'
services:
nginx:
image: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
expose:
- 9301
- 9302
- 9303
networks:
nginx:
aliases:
- nginx
- es1
- es2
- es3
elasticsearch1:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.2
container_name: elasticsearch1
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=es1:9301,es2:9302,es3:9303"
- "network.publish_host=es1"
- "transport.tcp.port=9301"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9201:9200
networks:
- es1
- nginx
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.2
container_name: elasticsearch2
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=es1:9301,es2:9302,es3:9303"
- "network.publish_host=es2"
- "transport.tcp.port=9302"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9202:9200
networks:
- es2
- nginx
elasticsearch3:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.2
container_name: elasticsearch3
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=es1:9301,es2:9302,es3:9303"
- "network.publish_host=es3"
- "transport.tcp.port=9303"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9203:9200
networks:
- es3
- nginx
networks:
es1:
es2:
es3:
nginx: