-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (72 loc) · 2.06 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
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.7'
services:
prometheus-poweredge:
image: prom/prometheus:latest
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./prometheus:/etc/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
prometheus-clark-sshtunnel:
image: nowsci/sshtunnel
volumes:
- ~/.ssh/id_ed25519.pub:/app/ssh_key.pub
- ~/.ssh/id_ed25519:/app/ssh_key
- ~/.ssh/known_hosts:/app/known_hosts
environment:
- REMOTE_HOST=127.0.0.1
- REMOTE_PORT=9090
- TUNNEL_PORT=22
- LOCAL_PORT=9090
- KEY=/app/ssh_key
prometheus-federated:
restart: always
image: prom/prometheus:latest
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml
- ./prometheus/prometheus.federate.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
alertmanager:
image: prom/alertmanager:v0.27.0
restart: unless-stopped
volumes:
- "./alertmanager:/config"
- alertmanager-data:/data
command: --config.file=/config/alertmanager.yml --log.level=debug --cluster.advertise-address=0.0.0.0:9093
discord-alerts:
image: benjojo/alertmanager-discord
restart: unless-stopped
environment:
- DISCORD_WEBHOOK=${DISCORD_WEBHOOK_URL}
grafana:
environment:
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s/grafana/
build:
context: ./grafana/
dockerfile: ./Dockerfile
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- grafana-data:/var/lib/grafana
poweredge-2950-node-exporter:
image: quay.io/prometheus/node-exporter:latest
command:
- '--path.rootfs=/host'
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
volumes:
alertmanager-data:
grafana-data:
networks:
default:
external:
name: poweredge