-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
86 lines (80 loc) · 2.19 KB
/
docker-compose.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
version: "3"
services:
cadvisor:
restart: always
image: gcr.io/google-containers/cadvisor:v0.36.0
container_name: cadvisor
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:rw"
- "/sys:/sys:ro"
# Default location
# - "/var/lib/docker/:/var/lib/docker:ro"
# Snap location
- "/var/snap/docker/current:/var/lib/docker:ro"
expose:
- "8080"
ports:
- 8085:8080
node-exporter:
restart: unless-stopped
image: prom/node-exporter:v1.1.2
container_name: node_exporter
command:
- '--path.rootfs=/host'
volumes:
- '/:/host:ro,rslave'
expose:
- "9100"
ports:
- 9100:9100
prometheus:
restart: always
depends_on:
- gcp-exporter
image: docker.io/prom/prometheus:v2.42.0
container_name: prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
# Permits `curl --request POST http://localhost:9090/-/reload`
- --web.enable-lifecycle
volumes:
- ${PWD}/prometheus.yml:/etc/prometheus/prometheus.yml
- ${PWD}/rules.yml:/etc/alertmanager/rules.yml
expose:
- "9090"
ports:
- 9090:9090
alertmanager:
restart: always
depends_on:
- prometheus
image: docker.io/prom/alertmanager:v0.25.0
container_name: alertmanager
volumes:
- ${PWD}/alertmanager.yml:/etc/alertmanager/alertmanager.yml
expose:
- "9093"
ports:
- 9093:9093
gcp-exporter:
image: ghcr.io/dazwilkin/gcp-exporter:5c8ff3c5cf405e0e8ae659b1ad7eae306c4687ec
container_name: gcp-exporter
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/secrets/client_secrets.json
volumes:
# Default location
# - ${HOME}/.config/gcloud/application_default_credentials.json:/secrets/client_secrets.json
# Using Snap will not resolve ${HOME} and requires fully resolved path
- /home/userid/.config/gcloud/application_default_credentials.json:/secrets/client_secrets.json
expose:
- "9402"
ports:
- 9402:9402
gcp-status:
image: ghcr.io/dazwilkin/gcp-status:e18a9c39494e3fc13f31a696a7703c97ba2a5017
container_name: gcp-status
expose:
- "9989"
ports:
- 9989:9989