-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (64 loc) · 1.58 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
---
version: '3'
services:
alertmanager:
build: ./build/alertmanager
image: planetary/alertmanager
container_name: alertmanager
hostname: alertmanager
restart: unless-stopped
env_file:
- .env.alertmanager
volumes:
- ./configs/alertmanager/:/etc/alertmanager/
- am_data:/data
command:
- '--config.file=/etc/alertmanager/alertmanager.yml'
- '--storage.path=/alertmanager'
ports:
- 9093:9093
healthcheck:
test: wget --no-verbose --tries=1 http://alertmanager:9093/-/healthy
interval: 60s
retries: 5
timeout: 10s
start_period: 20s
prometheus:
container_name: prometheus
hostname: prometheus
image: prom/prometheus:v2.37.8
restart: unless-stopped
volumes:
- ./configs/prometheus:/etc/prometheus
- prom_data:/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
ports:
- 9090:9090
healthcheck:
test: wget --no-verbose --tries=1 http://prometheus:9090/-/healthy
interval: 60s
retries: 5
timeout: 10s
start_period: 20s
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana:9.5.1
restart: unless-stopped
env_file:
- .env.grafana
volumes:
- ./configs/grafana:/etc/grafana
- gf_data:/var/lib/grafana
ports:
- 3000:3000
healthcheck:
test: curl --fail http://grafana:3000/api/health || exit 1
interval: 60s
retries: 5
timeout: 10s
start_period: 20s
volumes:
prom_data:
gf_data:
am_data: