-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose_logging.yaml
52 lines (49 loc) · 1.53 KB
/
compose_logging.yaml
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
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
container_name: elasticsearch
platform: linux/amd64
environment:
- "discovery.type=single-node"
- "ES_JAVA_OPTS: -Xms256m -Xmx256m"
- "http.cors.enabled=true"
ports:
- "9200:9200"
volumes:
- ./logging/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
logstash:
image: docker.elastic.co/logstash/logstash:${STACK_VERSION}
container_name: logstash
platform: linux/amd64
volumes:
- ./logging/:/logging/
- ./logging/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./logging/logstash/pipeline:/usr/share/logstash/pipeline
ports:
- "5044:5044"
environment:
- "ES_JAVA_OPTS: -Xms256m -Xmx256m"
depends_on:
- elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:${STACK_VERSION}
container_name: kibana
platform: linux/amd64
ports:
- "5601:5601"
depends_on:
- elasticsearch
filebeat:
image: docker.elastic.co/beats/filebeat:${STACK_VERSION}
container_name: filebeat
platform: linux/amd64
volumes:
- ./logging/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml
- /var/lib/docker/containers:/var/lib/docker/containers
- ./logs:/var/log/spring-boot
#- ./nginx/log:/var/log/nginx
depends_on:
- logstash
- elasticsearch
- kibana
command: filebeat -e -c /usr/share/filebeat/filebeat.yml