forked from ruflin/Elastica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (72 loc) · 1.49 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.4'
services:
elastica:
build: .
container_name: elastica
environment:
- ES_HOST=elasticsearch
- PROXY_HOST=nginx
networks:
- esnet
elasticsearch6_1:
build: ./env/elasticsearch/
container_name: elasticsearch
privileged: true
environment:
- bootstrap.memory_lock=true
- network.host=10.10.10.15
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
cap_add:
- ALL
- IPC_LOCK
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
esnet:
ipv4_address: 10.10.10.15
elasticsearch6_2:
build: ./env/elasticsearch/
privileged: true
environment:
- bootstrap.memory_lock=true
- network.host=10.10.10.16
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
cap_add:
- ALL
- IPC_LOCK
volumes:
- esdata1:/usr/share/elasticsearch/data
networks:
esnet:
ipv4_address: 10.10.10.16
nginx:
build: ./env/nginx/
networks:
esnet:
ipv4_address: 10.10.10.5
volumes:
esdata1:
driver: local
esdata6_1:
driver: local
networks:
esnet:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.10.10.0/24