-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 930 Bytes
/
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
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.2
container_name: elasticsearch
environment:
- cluster.name=nagbot
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- xpack.security.enabled=false
- xpack.monitoring.enabled=true
- xpack.graph.enabled=false
- xpack.watcher.enabled=false
- transport.host=127.0.0.1
- http.host=0.0.0.0
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 3g
volumes:
- esdata1:/usr/share/elasticsearch/data
expose:
- 9200
ports:
- 9200:9200
networks:
- elk
kibana:
image: docker.elastic.co/kibana/kibana:6.2.2
container_name: kibana
ports:
- 5601:5601
depends_on:
- elasticsearch
networks:
- elk
volumes:
esdata1:
driver: local
networks:
elk:
driver: bridge