-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.17 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
version: "3"
services:
prometheus:
image: prom/prometheus:v2.33.3
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus-data:/data
command:
- "--config.file=/etc/prometheus/prometheus.yml"
networks:
- nginx-proxy_default
- internal
environment:
VIRTUAL_HOST: example.com
LETSENCRYPT_HOST: example.com
LETSENCRYPT_EMAIL: [email protected]
restart: unless-stopped
depends_on:
- cadvisor
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.47.0
networks:
- internal
- nginx-proxy_default
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
command:
- "--housekeeping_interval=30s"
- "--docker_only=true"
- "--enable_metrics=memory,cpu,network,disk"
restart: unless-stopped
node_exporter:
image: prom/node-exporter:v1.5.0
command:
- "--path.rootfs=/host"
networks:
- internal
- nginx-proxy_default
pid: host
restart: unless-stopped
volumes:
- "/:/host:ro,rslave"
networks:
internal:
nginx-proxy_default:
external: true