-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (41 loc) · 1008 Bytes
/
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
version: '3.9'
services:
prometheus:
image: bitnami/prometheus:latest
volumes:
- ./prometheus/data:/opt/bitnami/prometheus/data
- ./prometheus/prometheus.yml:/opt/bitnami/prometheus/conf/prometheus.yml
networks:
- pr-network
container_name: "prometheus"
grafana:
image: grafana/grafana
restart: always
networks:
- pr-network
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- grafana-storage:/var/lib/grafana
container_name: "prom_grafana"
node-exporter:
image: bitnami/node-exporter:latest
networks:
- pr-network
container_name: "node-exporter"
nginx:
image: nginx:latest
ports:
- "80:80"
networks:
- pr-network
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/.htpasswd:/etc/nginx/.htpasswd
depends_on:
- prometheus
container_name: "nginx"
volumes:
grafana-storage: {}
networks:
pr-network:
driver: bridge