@@ -15,21 +15,23 @@ networks:
15
15
services:
16
16
{% if domain_name_enable %}
17
17
nginx-proxy:
18
- image: nginxproxy/nginx-proxy
18
+ image: nginxproxy/nginx-proxy:latest
19
19
restart: always
20
20
ports:
21
21
- "80:80"
22
22
networks:
23
23
- back-tier
24
24
- front-tier
25
25
volumes:
26
+ - /etc/localtime:/etc/localtime:ro
26
27
- /var/run/docker.sock:/tmp/docker.sock:ro
27
28
{% endif %}
28
29
29
30
prometheus:
30
- image: prom/prometheus:v2.25.2
31
+ image: prom/prometheus:latest
31
32
restart: always
32
33
volumes:
34
+ - /etc/localtime:/etc/localtime:ro
33
35
- ./prometheus/:/etc/prometheus/
34
36
- prometheus_data:/prometheus
35
37
command:
@@ -54,9 +56,10 @@ services:
54
56
{% endif %}
55
57
56
58
grafana:
57
- image: grafana/grafana
59
+ image: grafana/grafana:latest
58
60
restart: always
59
61
volumes:
62
+ - /etc/localtime:/etc/localtime:ro
60
63
- grafana_data:/var/lib/grafana
61
64
- ./grafana/provisioning/:/etc/grafana/provisioning/
62
65
depends_on:
@@ -77,41 +80,43 @@ services:
77
80
{% endif %}
78
81
79
82
ping:
80
- tty: true
81
- stdin_open: true
83
+ image: prom/blackbox-exporter:latest
84
+ restart: always
85
+ volumes:
86
+ - /etc/localtime:/etc/localtime:ro
87
+ - ./blackbox/config:/config
82
88
expose:
83
89
- 9115
84
90
ports:
85
91
- 9115:9115
86
- image: prom/blackbox-exporter
87
- restart: always
88
- volumes:
89
- - ./blackbox/config:/config
92
+ tty: true
93
+ stdin_open: true
90
94
command:
91
95
- '--config.file=/config/blackbox.yml'
92
96
networks:
93
97
- back-tier
94
98
95
99
speedtest:
100
+ image: miguelndecarvalho/speedtest-exporter:latest
101
+ restart: always
96
102
expose:
97
103
- 9798
98
104
ports:
99
105
- 9798:9798
100
- image: miguelndecarvalho/speedtest-exporter
101
- restart: always
102
106
networks:
103
107
- back-tier
104
108
105
109
nodeexp:
110
+ image: prom/node-exporter:latest
111
+ restart: always
106
112
privileged: true
107
- image: prom/node-exporter
108
113
volumes:
114
+ - /etc/localtime:/etc/localtime:ro
109
115
- /proc:/host/proc:ro
110
116
- /sys:/host/sys:ro
111
117
- /:/rootfs:ro
112
118
ports:
113
119
- 9100:9100
114
- restart: always
115
120
command:
116
121
- '--path.procfs=/host/proc'
117
122
- '--path.sysfs=/host/sys'
0 commit comments