-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
46 lines (46 loc) · 1.04 KB
/
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
42
43
44
45
46
version: '3'
services:
# prom
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./prom/prometheus.yaml:/etc/prometheus/prometheus.yaml
- ./prom/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
- '--web.route-prefix=/'
- '--web.enable-lifecycle'
restart: unless-stopped
ports:
- '9090:9090'
links:
- node-exporter:node-exporter
- co2-server:co2-server
co2-server:
image: cbron/co2-server
restart: unless-stopped
ports:
- '5000:5000'
devices:
- "/dev/bus/usb/001:/dev/bus/usb/001"
# node exporter
node-exporter:
image: prom/node-exporter
restart: unless-stopped
ports:
- '9100:9100'
# grafana
grafana:
image: grafana/grafana
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_PASSWORD=secure_pass
volumes:
- ./grafana:/var/lib/grafana
depends_on:
- prometheus
ports:
- '3000:3000'
links:
- prometheus:prometheus