-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
109 lines (99 loc) · 2.27 KB
/
docker-compose.yml
File metadata and controls
109 lines (99 loc) · 2.27 KB
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:
site:
image: threetreeslight/docker-hugo
volumes:
- ./blog:/site
ports:
- 1313:1313
command: ["hugo", "server", "-D", "--bind=0.0.0.0"]
nginx:
build:
context: .
dockerfile: Dockerfile
environment:
DEBUG: 1
ports:
- 8880:8080
- 8881:8081
nginx-prometheus-exporter:
image: nginx/nginx-prometheus-exporter:0.1.0
depends_on:
- nginx
ports:
- 9113:9113
command: "-nginx.scrape-uri http://nginx:8080/stub_status"
grafana:
image: grafana/grafana:5.2.0
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- grafana-storage:/var/lib/grafana
environment:
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
depends_on:
- prometheus
networks:
- default
ports:
- 3000:3000
prometheus:
image: prom/prometheus:v2.6.0
volumes:
- ./prometheus/prometheus-local.yml:/etc/prometheus/prometheus.yml
- ./prometheus/alert.rules.yml:/etc/prometheus/alert.rules.yml
- prometheus-data:/prometheus
depends_on:
- alertmanager
- blackbox-exporter
- cadvisor
- node-exporter
networks:
- default
ports:
- 9090:9090
alertmanager:
image: prom/alertmanager:v0.15.3
volumes:
- ./prometheus/alertmanager.yml:/etc/alertmanager/alertmanager.yml
ports:
- 9093:9093
blackbox-exporter:
image: prom/blackbox-exporter:v0.13.0
networks:
- default
ports:
- 9115:9115
cadvisor:
image: google/cadvisor:latest
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
- console
networks:
- default
ports:
- 8080:8080
node-exporter:
image: quay.io/prometheus/node-exporter
networks:
- default
pid: "host"
ports:
- 9100:9100
fluentd-gcp:
build:
context: ./fluentd-gcp
dockerfile: Dockerfile
volumes:
- ./fluentd-gcp/config:/etc/fluent/config.d
ports:
- 24224:24224
volumes:
prometheus-data:
driver: local
grafana-storage:
driver: local