forked from serilog-contrib/serilog-sinks-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (77 loc) · 1.78 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
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${TAG}
volumes:
- esdata2:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=zen
- discovery.zen.ping.unicast.hosts=elasticsearch
- http.cors.enabled=true
- http.cors.allow-origin=*
- http.cors.allow-headers=Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
- http.cors.allow-credentials=true
networks:
- elk
kibana:
image: docker.elastic.co/kibana/kibana:${TAG}
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
- server.name=kibana
- server.host="0"
- xpack.security.enabled=true
- xpack.monitoring.enabled=true
- xpack.ml.enabled=false
- xpack.graph.enabled=false
- xpack.reporting.enabled=false
- xpack.grokdebugger.enabled=false
ports:
- "5601:5601"
networks:
- esnet
depends_on:
- elasticsearch
head:
image: mobz/elasticsearch-head:5
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
ports:
- "9100:9100"
networks:
- elk
kibana:
image: docker.elastic.co/kibana/kibana:${TAG}
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
ports:
- "5601:5601"
networks:
- elk
depends_on:
- elasticsearch
volumes:
esdata1:
driver: local
esdata2:
driver: local
#esconfig1:
# driver: local
#esconfig2:
# driver: local
networks:
elk:
driver: bridge