forked from framiere/monitoring-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-step7.yml
109 lines (109 loc) · 2.89 KB
/
docker-compose-step7.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: "3"
services:
example:
image: ubuntu
command: bash -c 'echo $${RANDOM} ; sleep 1'
restart: always
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.0
restart: on-failure
ports:
- "9200:9200"
- "9300:9300"
environment:
xpack.security.enabled: "false"
kibana:
image: docker.elastic.co/kibana/kibana:5.5.2
restart: on-failure
ports:
- "5601:5601"
environment:
xpack.security.enabled: "false"
depends_on:
- elasticsearch
kibana_index_pattern:
image: tutum/curl
command: |
bash -c "sleep 30 ; curl 'http://kibana:5601/es_admin/.kibana/index-pattern/logstash-*/_create' -H 'kbn-version: 5.5.2' -H 'content-type: application/json' --data-binary '{\"title\":\"logstash-*\",\"timeFieldName\":\"@timestamp\",\"notExpandable\":true}'"
depends_on:
- kibana
logstash:
image: logstash
restart: on-failure
command: -e "input { udp { port => 5000 codec => json } } filter { if [docker][image] =~ /^logstash/ { drop { } } } output { elasticsearch { hosts => "elasticsearch" } }"
depends_on:
- elasticsearch
logspout:
image: bekt/logspout-logstash
restart: on-failure
volumes:
- /var/run/docker.sock:/tmp/docker.sock
environment:
ROUTE_URIS: logstash://logstash:5000
depends_on:
- logstash
metricbeat:
image: docker.elastic.co/beats/metricbeat:5.6.3
volumes:
- /var/run/docker.sock:/tmp/docker.sock
depends_on:
- elasticsearch
metricbeat-dashboard-setup:
image: docker.elastic.co/beats/metricbeat:5.6.3
command: bash -c 'sleep 30; ./scripts/import_dashboards -es http://elasticsearch:9200'
depends_on:
- elasticsearch
influxdb:
image: influxdb:1.3.7
ports:
- "8086:8086"
telegraf:
image: telegraf:1.4.3
volumes:
- /var/run/docker.sock:/tmp/docker.sock
- ./telegraf/telegraf-with-kafka-output.conf:/etc/telegraf/telegraf.conf:ro
links:
- influxdb
- elasticsearch
- kafka
kapacitor:
image: kapacitor:1.3.3
hostname: kapacitor
environment:
KAPACITOR_HOSTNAME: kapacitor
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086
depends_on:
- influxdb
chronograf:
image: chronograf:1.3.10
environment:
KAPACITOR_URL: http://kapacitor:9092
INFLUXDB_URL: http://influxdb:8086
ports:
- "8888:8888"
depends_on:
- influxdb
- kapacitor
grafana:
image: grafana/grafana:4.6.1
ports:
- "3000:3000"
depends_on:
- influxdb
- elasticsearch
grafana-setup:
build: grafana-setup/
depends_on:
- grafana
zookeeper:
image: wurstmeister/zookeeper:3.4.6
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:1.0.0
ports:
- "9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
- zookeeper