-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.middleware.yml
72 lines (68 loc) · 1.77 KB
/
docker-compose.middleware.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
version: "3.8"
services:
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.10.1
ports:
- 5601:5601
environment:
ELASTICSEARCH_HOSTS: '["http://elasticsearch:9200"]'
ELASTICSEARCH_URL: http://elasticsearch:9200
networks:
- elastic
depends_on:
- elasticsearch
logstash:
container_name: logstash
build:
dockerfile: Dockerfile
context: logstash
ports:
- 9600:9600
expose:
- 5000
- 5044
networks:
- elastic
depends_on:
- elasticsearch
metricbeat:
container_name: metricbeat
user: root
environment:
- MB_ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- MB_ELASTICSEARCH_USERNAME=elastic
- MB_ELASTICSEARCH_PASSWORD=changeme
- MB_KIBANA_HOST=http://kibana:5601
build:
context: metricbeat/
volumes:
- ./metricbeat/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
- /proc:/hostfs/proc:ro
- /:/hostfs:ro
networks:
- elastic
filebeat:
container_name: filebeat
user: root
build:
context: filebeat/
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# This is needed for filebeat to load container log path as specified in filebeat.yml
- /var/lib/docker/containers:/var/lib/docker/containers:ro
environment:
- ELASTICSEARCH_HOST="http://elasticsearch:9200"
- KIBANA_HOST="http://kibana:5601"
- ELASTICSEARCH_USERNAME="elastic"
- ELASTICSEARCH_PASSWORD="changeme"
command: ["--strict.perms=false"]
depends_on:
- elasticsearch
- logstash
networks:
- frontend
- backend
- elastic