forked from evnsio/prom-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (41 loc) · 1.21 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
version: "3"
services:
pushgateway:
image: prom/pushgateway:v0.4.0
ports:
- 9091:9091
restart: unless-stopped
prometheus:
image: prom/prometheus:latest
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.enable-admin-api'
- '--web.enable-lifecycle'
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/target.json:/etc/prometheus/target.json
- ./prometheus/alerts/:/etc/prometheus/rules.d/
- ./prometheus/data:/prometheus
restart: unless-stopped
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_PASSWORD=password
- GF_SMTP_ENABLED=true
- GF_SMTP_HOST=smtp.gmail.com:587
- GF_SMTP_PASSWORD=*vdp926qO7nH
restart: unless-stopped
alertmanager:
image: prom/alertmanager:latest
command: --config.file=/etc/alertmanager/alertmanager.yml
restart: unless-stopped
ports:
- 9093:9093
volumes:
- ./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml