-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus-stack.yaml
More file actions
47 lines (40 loc) · 1023 Bytes
/
Copy pathprometheus-stack.yaml
File metadata and controls
47 lines (40 loc) · 1023 Bytes
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
# syntax=docker/dockerfile:1
version: "3"
networks:
composes:
services:
prometheus:
container_name: prometheus
hostname: prometheus
restart: always
image: prom/prometheus:latest
ports:
- 9090:9090
volumes:
- ./configs/prometheus.yaml:/etc/prometheus/prometheus.yml
networks:
- composes
healthcheck:
test: ["CMD-SHELL", "wget --spider --no-verbose --tries=1 --timeout=5 http://localhost:9090/-/healthy || exit 1"]
start_interval: 2s
interval: 10s
timeout: 5s
retries: 3
grafana:
container_name: grafana
hostname: grafana
restart: always
image: grafana/grafana:latest
ports:
- 3000:3000
depends_on:
prometheus:
condition: service_healthy
networks:
- composes
healthcheck:
test: ["CMD-SHELL", "wget --spider --no-verbose --tries=1 --timeout=5 http://localhost:3000/api/health || exit 1"]
start_interval: 2s
interval: 10s
timeout: 5s
retries: 3