forked from SCE-Development/monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (100 loc) · 2.85 KB
/
docker-compose.yml
File metadata and controls
104 lines (100 loc) · 2.85 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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'
status-page-sshtunnel:
image: nowsci/sshtunnel
volumes:
- ~/.ssh/id_ed25519-tunnel.pub:/app/ssh_key.pub
- ~/.ssh/id_ed25519-tunnel:/app/ssh_key
- ~/.ssh/known_hosts:/app/known_hosts
environment:
- REMOTE=true
- TUNNEL_HOST=sce@10.31.5.15
- TUNNEL_PORT=22
- CONTAINER_HOST=status-page
- CONTAINER_PORT=9100
- REMOTE_PORT=17000
- KEY=/app/ssh_key
prometheus-clark-sshtunnel:
image: nowsci/sshtunnel
volumes:
- ~/.ssh/id_ed25519-tunnel.pub:/app/ssh_key.pub
- ~/.ssh/id_ed25519-tunnel:/app/ssh_key
- ~/.ssh/known_hosts:/app/known_hosts
environment:
- REMOTE_HOST=127.0.0.1
- REMOTE_PORT=9090
- TUNNEL_HOST=sce@10.31.5.15
- 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
status-page:
restart: unless-stopped
build:
context: ./system_status
dockerfile: Dockerfile
command:
- '--target=http://prometheus-federated:9090'
poweredge-2950-node-exporter:
image: quay.io/prometheus/node-exporter:latest
command:
- '--path.rootfs=/host'
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
portainer:
image: portainer/portainer-ce:lts
container_name: portainer
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- portainer_data:/data
volumes:
alertmanager-data:
grafana-data:
portainer_data:
networks:
default:
external:
name: poweredge