Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.58 KB
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
services:
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./observability/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9090/-/ready"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
loki:
image: grafana/loki:2.9.5
container_name: loki
ports:
- "3100:3100"
command: -config.file=/etc/loki/loki-config.yml
volumes:
- ./observability/loki-config.yml:/etc/loki/loki-config.yml
- ./observability/loki-data:/loki
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3100/ready"]
interval: 30s
timeout: 10s
retries: 5
promtail:
image: grafana/promtail:latest
container_name: promtail
volumes:
- ./observability/promtail-config.yml:/etc/promtail/promtail-config.yml
- ./reports/logs/:/report/logs/
command: -config.file=/etc/promtail/promtail-config.yml
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9080/ready"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s