-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1.15 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
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2
restart: always
stop_grace_period: 1m00s
environment:
- "cluster.name=es-cluster-01"
- "node.name=es-01"
- "bootstrap.memory_lock=true"
- "network.host=127.0.0.1"
- "xpack.security.enabled=false"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- ./esdata/:/usr/share/elasticsearch/data/
- /etc/localtime:/etc/localtime
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
network_mode: host
kibana:
image: docker.elastic.co/kibana/kibana:5.2.2
restart: always
volumes:
- /etc/localtime:/etc/localtime
environment:
- "ELASTICSEARCH_URL=http://127.0.0.1:9200"
- "ELASTICSEARCH_REQUESTTIMEOUT=90000"
- "XPACK_SECURITY_ENABLED=false"
- "SERVER_HOST=127.0.0.1"
- "SERVER_PORT=5601"
network_mode: host
nginx:
image: nginx:1.13.6
restart: always
volumes:
- /etc/localtime:/etc/localtime
- ./nginx/:/etc/nginx/conf.d/
network_mode: host