forked from ruflin/Elastica
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
87 lines (81 loc) · 1.67 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
79
80
81
82
83
84
85
86
87
version: '2.0'
services:
elastica:
build: .
container_name: elastica
environment:
- ES_HOST=elasticsearch
- PROXY_HOST=nginx
networks:
- esnet
#SETUP ELASTICSEARCH 6.0-beta1
elasticsearch6_1:
build: ./env/elasticsearch/
container_name: elasticsearch
privileged: true
environment:
- bootstrap.memory_lock=true
- network.host=172.18.0.15
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
cap_add:
- ALL
- IPC_LOCK
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
esnet:
ipv4_address: 172.18.0.15
elasticsearch6_2:
build: ./env/elasticsearch/
privileged: true
environment:
- bootstrap.memory_lock=true
- network.host=172.18.0.16
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
cap_add:
- ALL
- IPC_LOCK
volumes:
- esdata1:/usr/share/elasticsearch/data
networks:
esnet:
ipv4_address: 172.18.0.16
nginx:
build: ./env/nginx/
networks:
esnet:
ipv4_address: 172.18.0.5
volumes:
esdata1:
driver: local
esdata6_1:
driver: local
networks:
esnet:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16
gateway: 172.18.0.1