forked from The-DevOps-Dojo/cv-challenge01
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.app.yml
76 lines (68 loc) · 1.6 KB
/
docker-compose.app.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
version: "3.7"
services:
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- monitoring-network
restart: unless-stopped
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--web.external-url=/prometheus"
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SERVER_ROOT_URL=http://techynurse.site/grafana
- GF_SERVER_SERVE_FROM_SUB_PATH=true
volumes:
- grafana-data:/var/lib/grafana
networks:
- monitoring-network
restart: unless-stopped
loki:
image: grafana/loki:2.8.2
container_name: loki
ports:
- "3100:3100"
volumes:
- ./loki-config.yaml:/etc/loki/loki-config.yaml
networks:
- monitoring-network
restart: unless-stopped
promtail:
image: grafana/promtail:2.8.2
container_name: promtail
volumes:
- /var/log:/var/log
networks:
- monitoring-network
restart: unless-stopped
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:ro"
- "/sys:/sys:ro"
- "/var/lib/docker/:/var/lib/docker:ro"
- "/dev/disk/:/dev/disk:ro"
- "/dev/disk/:/dev/disk:ro"
ports:
- "8081:8080"
privileged: true
networks:
- monitoring-network
restart: unless-stopped
networks:
monitoring-network:
driver: bridge
volumes:
grafana-data:
driver: local