-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
42 lines (36 loc) · 929 Bytes
/
docker-compose.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
version: '3.9'
services:
prometheus:
image: prom/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--storage.tsdb.retention.time=1y'
ports:
- 9090:9090
restart: always
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
prometheus-pushgateway:
image: prom/pushgateway
ports:
- 9091:9091
restart: always
grafana:
image: grafana/grafana-oss
ports:
- 3000:3000
restart: always
volumes:
- grafana-data:/var/lib/grafana
data-collector:
build: data-collector
restart: always
depends_on:
- prometheus-pushgateway
volumes:
grafana-data:
prometheus-data: