-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (80 loc) · 1.96 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
87
services:
server:
build: .
container_name: nginx-server
ports:
- "80:80"
- "443:443"
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
- ./selfsigned.crt:/etc/ssl/certs/selfsigned.crt
- ./selfsigned.key:/etc/ssl/private/selfsigned.key
- ./dhparam.pem:/etc/ssl/certs/dhparam.pem
networks:
- monitoring
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
environment:
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: "/var/lib/grafana/dashboards/dashboard.json"
volumes:
- grafana-data:/var/lib/grafana
- ./provisioning:/etc/grafana/provisioning
- ./dashboard.json:/var/lib/grafana/dashboards/dashboard.json
networks:
- monitoring
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./selfsigned.crt:/etc/ssl/certs/selfsigned.crt
- ./selfsigned.key:/etc/ssl/private/selfsigned.key
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
networks:
- monitoring
nginx-prometheus-exporter:
image: nginx/nginx-prometheus-exporter
container_name: nginx-prom-export
command:
- "-nginx.scrape-uri=http://nginx-server:80/metrics"
ports:
- "9113:9113"
networks:
- monitoring
node_exporter:
image: prom/node-exporter
container_name: node-exporter
command:
- "--path.rootfs=/host"
pid: host
volumes:
- "/:/host:ro"
ports:
- "9100:9100"
networks:
- monitoring
cadvisor:
image: gcr.io/cadvisor/cadvisor
container_name: cadvisor
ports:
- "8080:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
devices:
- /dev/kmsg
networks:
- monitoring
volumes:
grafana-data:
prometheus-data:
networks:
monitoring:
name: monitoring