forked from blacktop/docker-elasticsearch-alpine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
94 lines (93 loc) · 1.85 KB
/
docker-compose.prod.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
88
89
90
91
92
93
94
version: "2"
services:
#############################
# ELASTICSEARCH MASTER NODE #
#############################
master:
restart: unless-stopped
image: blacktop/elasticsearch
command: master
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- data:/usr/share/elasticsearch/data
networks:
- elastic
####################################
# ELASTICSEARCH CLIENT/INGEST NODE #
####################################
client:
restart: unless-stopped
image: blacktop/elasticsearch:kopf
command: client
ports:
- "9200:9200"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
links:
- master:elastic-master
networks:
- elastic
###########################
# ELASTICSEARCH DATA NODE #
###########################
data:
restart: unless-stopped
image: blacktop/elasticsearch
environment:
- ES_JAVA_OPTS=-Xms2g -Xmx2g
mem_limit: 4g
memswap_limit: 4g
# mem_swappiness: 0
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
command: data
links:
- master:elastic-master
volumes:
- data:/usr/share/elasticsearch/data
networks:
- elastic
###############
# KIBANA NODE #
###############
kibana:
image: kibana
ports:
- "5601:5601"
links:
- client:elasticsearch
networks:
- elastic
#############################
# ELASTICSEARCH DATA VOLUME #
#############################
volumes:
data:
################################
# ELASTICSEARCH BRIDGE NETWORK #
################################
networks:
elastic:
driver: bridge