-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
executable file
·95 lines (87 loc) · 2.06 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
88
89
90
91
92
93
94
95
version: '3.7'
services:
elasticsearch:
hostname: elasticsearch
container_name: elasticsearch
restart: always
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
environment:
- discovery.type=single-node
ports:
- "9200:9200"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
cluster.name: "elastic-node"
network.host: "0.0.0.0"
kibana:
hostname: kibana
container_name: kibana
restart: always
image: docker.elastic.co/kibana/kibana:6.5.4
ports:
- "5601:5601"
environment:
elasticsearch.url: "elasticsearch:9200"
depends_on:
- elasticsearch
logstash:
hostname: logstash
container_name: logstash
image: docker.elastic.co/logstash/logstash:6.5.4
ports:
- "5044:5044"
volumes:
- sbrest_data:/logs
- $PWD/elk-logstash/logstash.conf:/conf/logstash.conf
command: logstash -f /conf/logstash.conf
depends_on:
- elasticsearch
heartbeat:
hostname: heartbeat
container_name: heartbeat
build:
context: elk_heartbeat
restart: always
depends_on:
- elasticsearch
filebeat:
hostname: filebeat
container_name: filebeat
build:
context: elk-filebeat
volumes:
- sbrest_data:/logs
# # needed to access all docker logs
# - "/var/lib/docker/containers:/var/lib/docker/containers"
# # needed to access additional information about containers
# - "/var/run/docker.sock:/var/run/docker.sock"
restart: always
depends_on:
- elasticsearch
sbrest:
hostname: sbrest
container_name: sbrest
build:
context: java-sbrest
restart: always
labels:
filebeat_enable: sbrest
volumes:
- sbrest_data:/logs
ports:
- "8081:8080"
depends_on:
- elasticsearch
volumes:
elasticsearch_data:
filebeat_data:
sbrest_data: